Using IN for a subquery - HR schema

This relates to another post where I wanted to write a query from the HR schema that gave the the names and salaries of those employees (from the employees table) who earn the highest salaries in their respective departments. See Re: Using a subquery to display names and max salaries by department: HR Schema .
One of the replies to that post suggested the query:
SELECT first_name, last_name, salary
FROM employees
WHERE (department_id,salary) IN
(SELECT department_id, MAX(salary) FROM employees GROUP BY department_id);
This query works fine. However I still don't understand how the "in" works in this query.
From what I understand "in" is for a set of OR conditions?
Also if I change the order of the columns in the WHERE clause I get an error where no rows are fetched:
SELECT first_name, last_name, salary
FROM employees
WHERE (salary, department_id) IN (select department_id, max(salary) from employees group by department_id);
0 rows selected
If anyone could explain this to me it would be much appreciated.
I'm using Oracle Database 11g express edition and sql developer.

Hi,
993451 wrote:
This relates to another post where I wanted to write a query from the HR schema that gave the the names and salaries of those employees (from the employees table) who earn the highest salaries in their respective departments. See Re: Using a subquery to display names and max salaries by department: HR Schema .
One of the replies to that post suggested the query:
SELECT first_name, last_name, salary
FROM employees
WHERE (department_id,salary) IN
(SELECT department_id, MAX(salary) FROM employees GROUP BY department_id);
This query works fine. However I still don't understand how the "in" works in this query.
From what I understand "in" is for a set of OR conditions?Yes, that's baiscally right.
For example, the scott.dept table has 4 rows, with deptnos 10, 20, 30 and 40, so
WHERE   x  IN  (
                   SELECT  deptno
                   FROM    scott.dept
               )is equivalent to
WHERE   x  = 10
OR      x  = 20
OR      x  = 30
OR      x  = 40 Also if I change the order of the columns in the WHERE clause I get an error where no rows are fetched:
SELECT first_name, last_name, salary
FROM employees
WHERE (salary, department_id) IN (select department_id, max(salary) from employees group by department_id);
0 rows selectedThat's actually not an error; it's just not the results you wanted.
The order of the columns is significant. The N-th value in the list before the IN operator must match the N-th value in the SELECT clause of the sub-query.
When you say
WHERE   (x, y)  IN (
                       SELECT   a, b
                       FROM    ...
                   )That's saying "only include rows where x and y *both* match a and b, respectively, on the same row"
If anyone could explain this to me it would be much appreciated.Let's look at a concret example.
One of the rows produced by the sub-query <tt> (select department_id, max(salary) from employees group by department_id) </tt> has department_id=10 and max(salary) = 4400. That means there is a row in the table that has department_id=10 and salary=4400. But what happens when you evaluate the WHERE clause
WHERE (salary, department_id) IN (select department_id, max(salary) from employees group by department_id)for that row? that's equivalent to saying
WHERE   salary         = 10
AND     department_id  = 4400Both parts of that condition are FALSE, so the condition as a whole is FALSE.
I'm using Oracle Database 11g express edition and sql developer.Thanks for including that! In this case, it happens not to matter (that is, the behavior you asked about is the same in all recent versions of Oracle, and it does not depend on your front end), but you had no way of knowing that, it's easy to give your version, and it never hurts.

Similar Messages

  • XI 3.0 File receive comm.channel using variable for folder/file name schema

    Hi,
    I prepared a integration message to produce .txt file output of message.
    I prepared message successfully, it's running properly and producing .txt file.
    My problem is to set .txt file name.
    I must set file name using by some information in .txt file.
    I must get some part of the first line of .txt to set filename.
    I declared a variable to do it.
    How can i set referance of variable?
    payload:..?
    Thanks.

    Hi,
    this blogs might be helpful:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/13704
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/2664
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=%28J2EE3417800%29ID0935780750DB11281184595516315205End?blog=/pub/wlg/1888
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    Regards
    Patrick

  • XMLAGG structure, performance help needed for odd nesting in schema

    Hello,
    I have to produce XML to look like:
    <?xml version='1.0'?>
      <enterprise>
        <membership>
          <sourcedid>
            <id>PHYS_101_001_FA2007</id>
          </sourcedid>
        <!-- NOTE: absence of "members" level tag for XMLAGG! -->
        <member>
          <sourcedid>
            <id>D2LU0001</id>
          </sourcedid>
          <role roletype="Sample Role">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourcedid>
            <id>D2LU0002</id>
          </sourcedid>
          <role roletype="Sample Role">
            <status>1</status>
          </role>
        </member>
      </membership>
    </enterprise>This would be straightforward if the schema allowed for a "<members>" tag under which to nest the <member> tags. But, it does not allow for that tag or any other than those listed above.
    I have a query which does produce that output (except for the roletype attribute), but its performance is horrible; it takes about 40 minutes to return data:
    SELECT
         XMLROOT(
             XMLELEMENT("enterprise",
               XMLAGG(
                 XMLELEMENT("membership",
                   XMLFOREST( XMLELEMENT("id",cx.mapped_course_id) as "sourcedid"
                   (SELECT XMLAGG(
                     XMLELEMENT("member",
                       XMLFOREST(XMLELEMENT("id",spriden_id) AS "sourcedid",
                                 XMLELEMENT("status",'1') AS "role"
                      FROM enrollments_fall_sfrstca efs
                         , spriden sp
                         , gzv_tuid t
                     WHERE sp.spriden_change_ind IS NULL
                       AND sp.spriden_pidm       = t.pidm
                       AND t.tuid                = efs.user_name
                       AND efs.mapped_course_id  = cx.mapped_course_id
                       AND efs.term              = cx.semester
                , VERSION '1.0', STANDALONE NO VALUE)
      FROM courses_xt cx
    WHERE cx.semester = :term_code
    ;Similar queries are producing courses and users XML fine with no performance issues, but these are driven off either the courses view or the enrollments view, but not both.
    Is there some other way I can produce the nesting I need for the vendor's schema?
    The source views are basically as follows (showing relevant columns only):
    courses_xt:
    MAPPED_COURSE_ID       SEMEST
    AVFT209-13307-201210   201210
    AVFT210-13308-201210   201210enrollments_fall_sfrstca:
    MAPPED_COURSE_ID       USER_NAME
    AVFT209-13307-201210    FULLERC8
    AVFT209-13307-201210    SHUPEK
    AVFT209-13307-201210    NOMAN
    AVFT210-13308-201210    SHUPEK
    AVFT210-13308-201210    PELLONMWhen I have the query without the XML (with the subquery as a column of the outer query), this returns the correct data quickly (a couple of minutes).
    I have tried various permutations of XMLFOREST, XMLELEMENT, XMLAGG but either I get syntax errors, or the data is wrong (e.g. repeated '<membership>' for each '<member>', or I have to create an invalid tag '<members>' to be filtered later).
    Please advise!
    Thanks,
    Anita Lees

    Hi Anita,
    Have you tried with a GROUP BY and no subquery?
    Here's an example using SCOTT schema.
    I've used the same tag names and structure so that you can see the analogy :
    SELECT XMLElement("enterprise",
             XMLAgg(
               XMLElement("membership",
                 XMLElement("sourceid", xmlelement("id", d.deptno))
               , XMLAgg(
                   XMLElement("member",
                     XMLElement("sourceid",
                       XMLElement("id", e.empno)
                   , XMLElement("role",
                       XMLAttributes(e.job as "roletype")
                     , XMLElement("status", '1')
    FROM scott.dept d
         LEFT OUTER JOIN scott.emp e ON e.deptno = d.deptno
    WHERE d.deptno IN (10,20)
    GROUP BY d.deptno
    ;which gives :
    <enterprise>
      <membership>
        <sourceid>
          <id>10</id>
        </sourceid>
        <member>
          <sourceid>
            <id>7782</id>
          </sourceid>
          <role roletype="MANAGER">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7934</id>
          </sourceid>
          <role roletype="CLERK">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7839</id>
          </sourceid>
          <role roletype="PRESIDENT">
            <status>1</status>
          </role>
        </member>
      </membership>
      <membership>
        <sourceid>
          <id>20</id>
        </sourceid>
        <member>
          <sourceid>
            <id>7369</id>
          </sourceid>
          <role roletype="CLERK">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7902</id>
          </sourceid>
          <role roletype="ANALYST">
            <status>1</status>
          </role>
        </member>
        <member>
          <sourceid>
            <id>7566</id>
          </sourceid>
          <role roletype="MANAGER">
            <status>1</status>
          </role>
        </member>
      </membership>
    </enterprise>

  • Want to Use eHD for Primary Storage

    Good day,
    My question basically is: How do I change over to use my eHD as my primary storage instead of using it for back up through Time Machine? AND Can anyone explain how to do it as though I just plugged in a Mac for the first time yesterday?
    Background: About 2 years ago with some great advice from people who answered a previous post I purchased a 1TM OWC external HD.  I was down to 4GB left available on my internal and I find myself in a similar situation now with only 11.93GB left on my internal HD despite the 1TM eHD which is only a fraction full. 
    2 years ago when I originally connected my eHD I was given the option to store directly to eHD OR use it for back up through TM.  Being a novice to it all and for whatever reason, not sure why exactly but at the time I chose to back up through TM.  I was having issues with getting TimeVault turned off and was overwhelmed etc. etc. 
    Anyhow--flash forward 2 years later I am filling up my internal again with only the 11.93GB left that I mentioned.  According to OmniDiskSweeper a good 142.9GB of it is coming from my movies---mostly the events vs. projects of course but 142.9GB none-the-less.  I know when I import movies from my camera I can choose to direct them to the OWC but because the internal shows up first by default, sometimes I rush import without changing it to the OWC, hence filling up my internal.
    Basically what I really want to do is  store everything directly to the eHD and I am not sure how to do it.  Is there anyone that can walk me through the process in simple, simple terms?  Although I feel I've come a long way in 2 years I still consider myself a novice. 
    Yes, I have read many posts, threads, discussions but with different suggestions so not sure what is right.  I am not familiar with this stuff such so I end up being afraid to "try" any of it for fear of losing my pics, movies forever. Or having to re-do them somehow.  I read about just moving iMovie but too many options as to how and not sure which is right.  Most forums are for people who know more than I about this already and suggest things like change events to view by volume (did it) but then I read stuff like open volume where events are stored and drag to volume you want to store it.  Well for someone like me that raises more questions than answers.  What volume?  Do they mean in my case drag to the eHD?  Will this keep everything the same as I had it?  Will I still have my dates?  Titles?  Some discussions say copy.  Do they mean move?  Etc. Etc. Etc.
    Really I want to just store directly to eHD for primary.  I want to be able to open iMovie, iPhoto and have everything just like I do now but with all that glorius 1TB storage.  I don't want to redo anything---just move and run off the eHD.  Possible?  If I simply unplug my eHD and reconnect---will I get the option I did 2 years ago to store directly to the eHD?  
    UGH! 
    Message was edited by: dgc0225 to re-arrange wording just after posting

    Hi BDAqua,
    If it's "easy" I would consider getting another 1 to 2 GB. 
    I read a post before I posted here that referred me to Ken Stone's site about formatting and partitioning but I couldn't change the "Volume Scheme" like in his examples.  My real ones were greyed out so I didn't have the option to select.  And honestly--reading on it's pretty complicated (based on my lack of knowledge with this) and I'm afraid I would screw it up anyhow.  Anything else besides partitioning? 
    Anyone know what happens if I just turn-off Time Machine? What if I unplug the eHD and plug back in and start over?  Like a re-boot of sorts?  Too good to be true? 

  • How can I create a new entry without using LOV for foreign keys.

    Referring to TUHRA sample application based on HR database schema. JDeveloper 10.1.3.0.4
    How can I create a new employee without using LOV for the foreign key "job_id".
    On the first page I would like to choose the job_title from adf read-only table.
    After clicking on the "create new employee button" a creation form appears in which the job_id field is set with previous selection.
    Regards M.Winkler
    Edited by: user3541283 on 06.10.2008 03:44
    Edited by: user3541283 on 06.10.2008 03:50

    Hi,
    usually the foreign key is only set if the VO you select is dependent from a master. If e.g. you have DepartmentsVO1 that has an EmployeeVO3 as its nested VO, then creating a new instance of employees automatically add the foreign key. If you add EmployeesVO1, which is not dependent to DepartmensVO1, then the foreign key is not set. So if this is the case in THURA (keep in mind that this is not an Oracle demo but a sample used in a book about ADF) then all you need is to take the independent VO when building the new employee form.
    Frank

  • [SOLVED] Getting freezes after using dwm for some time and exiting it

    Hello, I have an Asus Ux51, with a fresh (less than a month) arch installation. If I recall correctly I had a couple of freezes in other occasions but I don't remember much about those so I rather focus on the only freeze I can more or less reproduce and I've been having lately. After using dwm for some time with a couple of programs opened (rTorrent, browser, and some terminals for instance), if I close dwm or just press the power button to shut down, it starts closing everything and either stays with a black screen, or hangs while X prints the log information. It's not always though, for example, if I just boot it, open dwm and close it without giving it much use it usually closes fine.
    Tried googling a bit to see the usual ways to troubleshoot this but didn't get really far.
    This is my /var/log/Xorg.0.log
    [ 7.573]
    X.Org X Server 1.14.2
    Release Date: 2013-06-25
    [ 7.573] X Protocol Version 11, Revision 0
    [ 7.573] Build Operating System: Linux 3.9.7-1-ARCH x86_64
    [ 7.574] Current Operating System: Linux arch 3.10.3-1-ARCH #1 SMP PREEMPT Fri Jul 26 11:26:59 CEST 2013 x86_64
    [ 7.574] Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=74e92d67-41b6-4911-8ceb-009ae8c9cdab ro quiet add_efi_memmap i915.i915_enable_rc6=1 pcie_aspm=force drm.vblankoffdelay=1 i915.semaphores=1 "acpi_osi=!Windows 2012"
    [ 7.574] Build Date: 01 July 2013 10:48:42AM
    [ 7.574]
    [ 7.574] Current version of pixman: 0.30.0
    [ 7.574] Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
    [ 7.574] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    [ 7.574] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Aug 10 19:08:34 2013
    [ 7.574] (==) Using config directory: "/etc/X11/xorg.conf.d"
    [ 7.575] (==) No Layout section. Using the first Screen section.
    [ 7.575] (==) No screen section available. Using defaults.
    [ 7.575] (**) |-->Screen "Default Screen Section" (0)
    [ 7.575] (**) | |-->Monitor "<default monitor>"
    [ 7.575] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
    [ 7.575] (==) Automatically adding devices
    [ 7.575] (==) Automatically enabling devices
    [ 7.575] (==) Automatically adding GPU devices
    [ 7.578] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
    [ 7.578] Entry deleted from font path.
    [ 7.578] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/100dpi/".
    [ 7.578] Entry deleted from font path.
    [ 7.578] (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
    [ 7.578] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/75dpi/".
    [ 7.578] Entry deleted from font path.
    [ 7.578] (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
    [ 7.578] (==) FontPath set to:
    /usr/share/fonts/misc/,
    /usr/share/fonts/TTF/,
    /usr/share/fonts/OTF/
    [ 7.578] (==) ModulePath set to "/usr/lib/xorg/modules"
    [ 7.578] (II) The server relies on udev to provide the list of input devices.
    If no devices become available, reconfigure udev or disable AutoAddDevices.
    [ 7.578] (II) Loader magic: 0x7fdc20
    [ 7.578] (II) Module ABI versions:
    [ 7.578] X.Org ANSI C Emulation: 0.4
    [ 7.578] X.Org Video Driver: 14.1
    [ 7.578] X.Org XInput driver : 19.1
    [ 7.578] X.Org Server Extension : 7.0
    [ 7.578] (II) xfree86: Adding drm device (/dev/dri/card1)
    [ 7.579] (II) xfree86: Adding drm device (/dev/dri/card0)
    [ 7.580] (--) PCI:*(0:0:2:0) 8086:0166:1043:15a7 rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
    [ 7.580] (--) PCI: (0:1:0:0) 10de:0fd1:1043:15a7 rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
    [ 7.580] Initializing built-in extension Generic Event Extension
    [ 7.580] Initializing built-in extension SHAPE
    [ 7.580] Initializing built-in extension MIT-SHM
    [ 7.580] Initializing built-in extension XInputExtension
    [ 7.580] Initializing built-in extension XTEST
    [ 7.580] Initializing built-in extension BIG-REQUESTS
    [ 7.580] Initializing built-in extension SYNC
    [ 7.580] Initializing built-in extension XKEYBOARD
    [ 7.580] Initializing built-in extension XC-MISC
    [ 7.580] Initializing built-in extension SECURITY
    [ 7.580] Initializing built-in extension XINERAMA
    [ 7.580] Initializing built-in extension XFIXES
    [ 7.580] Initializing built-in extension RENDER
    [ 7.581] Initializing built-in extension RANDR
    [ 7.581] Initializing built-in extension COMPOSITE
    [ 7.581] Initializing built-in extension DAMAGE
    [ 7.581] Initializing built-in extension MIT-SCREEN-SAVER
    [ 7.581] Initializing built-in extension DOUBLE-BUFFER
    [ 7.581] Initializing built-in extension RECORD
    [ 7.581] Initializing built-in extension DPMS
    [ 7.581] Initializing built-in extension X-Resource
    [ 7.581] Initializing built-in extension XVideo
    [ 7.581] Initializing built-in extension XVideo-MotionCompensation
    [ 7.582] Initializing built-in extension XFree86-VidModeExtension
    [ 7.583] Initializing built-in extension XFree86-DGA
    [ 7.583] Initializing built-in extension XFree86-DRI
    [ 7.584] Initializing built-in extension DRI2
    [ 7.584] (II) LoadModule: "glx"
    [ 7.585] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
    [ 7.586] (II) Module glx: vendor="X.Org Foundation"
    [ 7.586] compiled for 1.14.2, module version = 1.0.0
    [ 7.586] ABI class: X.Org Server Extension, version 7.0
    [ 7.586] (==) AIGLX enabled
    [ 7.587] Loading extension GLX
    [ 7.587] (==) Matched intel as autoconfigured driver 0
    [ 7.587] (==) Matched nouveau as autoconfigured driver 1
    [ 7.587] (==) Matched nvidia as autoconfigured driver 2
    [ 7.587] (==) Matched nv as autoconfigured driver 3
    [ 7.587] (==) Matched intel as autoconfigured driver 4
    [ 7.587] (==) Matched vesa as autoconfigured driver 5
    [ 7.587] (==) Matched modesetting as autoconfigured driver 6
    [ 7.587] (==) Matched fbdev as autoconfigured driver 7
    [ 7.587] (==) Assigned the driver to the xf86ConfigLayout
    [ 7.587] (II) LoadModule: "intel"
    [ 7.588] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
    [ 7.592] (II) Module intel: vendor="X.Org Foundation"
    [ 7.592] compiled for 1.14.2, module version = 2.21.12
    [ 7.592] Module class: X.Org Video Driver
    [ 7.592] ABI class: X.Org Video Driver, version 14.1
    [ 7.592] (II) LoadModule: "nouveau"
    [ 7.592] (WW) Warning, couldn't open module nouveau
    [ 7.592] (II) UnloadModule: "nouveau"
    [ 7.592] (II) Unloading nouveau
    [ 7.592] (EE) Failed to load module "nouveau" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "nvidia"
    [ 7.592] (WW) Warning, couldn't open module nvidia
    [ 7.592] (II) UnloadModule: "nvidia"
    [ 7.592] (II) Unloading nvidia
    [ 7.592] (EE) Failed to load module "nvidia" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "nv"
    [ 7.592] (WW) Warning, couldn't open module nv
    [ 7.592] (II) UnloadModule: "nv"
    [ 7.592] (II) Unloading nv
    [ 7.592] (EE) Failed to load module "nv" (module does not exist, 0)
    [ 7.592] (II) LoadModule: "vesa"
    [ 7.593] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so
    [ 7.593] (II) Module vesa: vendor="X.Org Foundation"
    [ 7.593] compiled for 1.14.0, module version = 2.3.2
    [ 7.593] Module class: X.Org Video Driver
    [ 7.593] ABI class: X.Org Video Driver, version 14.1
    [ 7.593] (II) LoadModule: "modesetting"
    [ 7.593] (WW) Warning, couldn't open module modesetting
    [ 7.593] (II) UnloadModule: "modesetting"
    [ 7.593] (II) Unloading modesetting
    [ 7.593] (EE) Failed to load module "modesetting" (module does not exist, 0)
    [ 7.593] (II) LoadModule: "fbdev"
    [ 7.593] (WW) Warning, couldn't open module fbdev
    [ 7.593] (II) UnloadModule: "fbdev"
    [ 7.593] (II) Unloading fbdev
    [ 7.593] (EE) Failed to load module "fbdev" (module does not exist, 0)
    [ 7.593] (II) intel: Driver for Intel Integrated Graphics Chipsets: i810,
    i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G, 915G,
    E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM, Pineview G,
    965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33, GM45,
    4 Series, G45/G43, Q45/Q43, G41, B43, B43, Clarkdale, Arrandale,
    Sandybridge Desktop (GT1), Sandybridge Desktop (GT2),
    Sandybridge Desktop (GT2+), Sandybridge Mobile (GT1),
    Sandybridge Mobile (GT2), Sandybridge Mobile (GT2+),
    Sandybridge Server, Ivybridge Mobile (GT1), Ivybridge Mobile (GT2),
    Ivybridge Desktop (GT1), Ivybridge Desktop (GT2), Ivybridge Server,
    Ivybridge Server (GT2), HD Graphics, HD Graphics 4600,
    Haswell Desktop (GT3), HD Graphics, HD Graphics 4600,
    Haswell Mobile (GT3), HD Graphics, HD Graphics P4600/P4700,
    Haswell Server (GT3), Haswell (GT1), Haswell (GT2), Haswell (GT3),
    HD Graphics, Haswell (GT2), Haswell (GT3), Haswell SDV Desktop (GT1),
    Haswell SDV Desktop (GT2), Haswell SDV Desktop (GT3),
    Haswell SDV Mobile (GT1), Haswell SDV Mobile (GT2),
    Haswell SDV Mobile (GT3), Haswell SDV Server (GT1),
    Haswell SDV Server (GT2), Haswell SDV Server (GT3),
    Haswell SDV (GT1), Haswell SDV (GT2), Haswell SDV (GT3),
    Haswell SDV (GT1), Haswell SDV (GT2), Haswell SDV (GT3),
    Haswell ULT Desktop (GT1), Haswell ULT Desktop (GT2),
    Iris(TM) Graphics 5100, HD Graphics, HD Graphics 4400,
    HD Graphics 5000, Haswell ULT Server (GT1), Haswell ULT Server (GT2),
    Iris(TM) Graphics 5100, Haswell ULT (GT1), Haswell ULT (GT2),
    Iris(TM) Graphics 5100, HD Graphics, HD Graphics 4200,
    Iris(TM) Graphics 5100, Haswell CRW Desktop (GT1), HD Graphics 4600,
    Iris(TM) Pro Graphics 5200, Haswell CRW Mobile (GT1),
    HD Graphics 4600, Iris(TM) Pro Graphics 5200,
    Haswell CRW Server (GT1), Haswell CRW Server (GT2),
    Iris(TM) Pro Graphics 5200, Haswell CRW (GT1), Haswell CRW (GT2),
    Iris(TM) Pro Graphics 5200, Haswell CRW (GT1), Haswell CRW (GT2),
    Iris(TM) Pro Graphics 5200, ValleyView PO board
    [ 7.594] (II) VESA: driver for VESA chipsets: vesa
    [ 7.594] (++) using VT number 1
    [ 7.594] (WW) Falling back to old probe method for vesa
    [ 7.594] (II) intel(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
    [ 7.594] (==) intel(0): Depth 24, (--) framebuffer bpp 32
    [ 7.594] (==) intel(0): RGB weight 888
    [ 7.594] (==) intel(0): Default visual is TrueColor
    [ 7.594] (--) intel(0): Integrated Graphics Chipset: Intel(R) Ivybridge Mobile (GT2)
    [ 7.594] (**) intel(0): Relaxed fencing enabled
    [ 7.594] (**) intel(0): Wait on SwapBuffers? enabled
    [ 7.594] (**) intel(0): Triple buffering? enabled
    [ 7.594] (**) intel(0): Framebuffer tiled
    [ 7.594] (**) intel(0): Pixmaps tiled
    [ 7.594] (**) intel(0): 3D buffers tiled
    [ 7.594] (**) intel(0): SwapBuffers wait enabled
    [ 7.594] (==) intel(0): video overlay key set to 0x101fe
    [ 7.594] (II) intel(0): Output eDP1 has no monitor section
    [ 7.595] (--) intel(0): found backlight control interface /sys/class/backlight/acpi_video1
    [ 7.596] (II) intel(0): Output VGA1 has no monitor section
    [ 7.596] (II) intel(0): EDID for output eDP1
    [ 7.596] (II) intel(0): Manufacturer: LGD Model: 323 Serial#: 0
    [ 7.596] (II) intel(0): Year: 2012 Week: 0
    [ 7.596] (II) intel(0): EDID Version: 1.4
    [ 7.596] (II) intel(0): Digital Display Input
    [ 7.596] (II) intel(0): 6 bits per channel
    [ 7.596] (II) intel(0): Digital interface is DisplayPort
    [ 7.596] (II) intel(0): Max Image Size [cm]: horiz.: 35 vert.: 19
    [ 7.596] (II) intel(0): Gamma: 2.20
    [ 7.596] (II) intel(0): No DPMS capabilities specified
    [ 7.596] (II) intel(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
    [ 7.596] (II) intel(0): First detailed timing is preferred mode
    [ 7.596] (II) intel(0): Preferred mode is native pixel format and refresh rate
    [ 7.596] (II) intel(0): redX: 0.629 redY: 0.350 greenX: 0.349 greenY: 0.614
    [ 7.596] (II) intel(0): blueX: 0.154 blueY: 0.112 whiteX: 0.313 whiteY: 0.329
    [ 7.596] (II) intel(0): Manufacturer's mask: 0
    [ 7.596] (II) intel(0): Supported detailed timing:
    [ 7.596] (II) intel(0): clock: 138.0 MHz Image Size: 345 x 194 mm
    [ 7.596] (II) intel(0): h_active: 1920 h_sync: 1952 h_sync_end 1988 h_blank_end 2088 h_border: 0
    [ 7.596] (II) intel(0): v_active: 1080 v_sync: 1085 v_sync_end 1090 v_blanking: 1102 v_border: 0
    [ 7.596] (II) intel(0): LG Display
    [ 7.596] (II) intel(0): LP156WF4-SPB1
    [ 7.596] (II) intel(0): EDID (in hex):
    [ 7.596] (II) intel(0): 00ffffffffffff0030e4230300000000
    [ 7.596] (II) intel(0): 00160104952313780a25b5a159599d27
    [ 7.596] (II) intel(0): 1c505400000001010101010101010101
    [ 7.596] (II) intel(0): 010101010101e83580a8703816402024
    [ 7.596] (II) intel(0): 550059c2100000180000000000000000
    [ 7.596] (II) intel(0): 00000000000000000000000000fe004c
    [ 7.596] (II) intel(0): 4720446973706c61790a2020000000fe
    [ 7.596] (II) intel(0): 004c503135365746342d535042310069
    [ 7.596] (II) intel(0): Not using default mode "320x240" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "400x300" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "512x384" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "640x480" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "640x512" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "800x600" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "896x672" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "928x696" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "960x720" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "700x525" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Not using default mode "1024x768" (doublescan mode not supported)
    [ 7.597] (II) intel(0): Printing probed modes for output eDP1
    [ 7.597] (II) intel(0): Modeline "1920x1080"x60.0 138.00 1920 1952 1988 2088 1080 1085 1090 1102 -hsync -vsync (66.1 kHz eP)
    [ 7.597] (II) intel(0): Modeline "1400x1050"x60.0 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
    [ 7.597] (II) intel(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
    [ 7.597] (II) intel(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz d)
    [ 7.597] (II) intel(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz d)
    [ 7.597] (II) intel(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz d)
    [ 7.597] (II) intel(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
    [ 7.597] (II) intel(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz d)
    [ 7.598] (II) intel(0): EDID for output VGA1
    [ 7.598] (II) intel(0): Output eDP1 connected
    [ 7.598] (II) intel(0): Output VGA1 disconnected
    [ 7.598] (II) intel(0): Using exact sizes for initial modes
    [ 7.598] (II) intel(0): Output eDP1 using initial mode 1920x1080
    [ 7.598] (II) intel(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
    [ 7.598] (II) intel(0): Kernel page flipping support detected, enabling
    [ 7.598] (==) intel(0): DPI set to (96, 96)
    [ 7.598] (II) Loading sub module "fb"
    [ 7.598] (II) LoadModule: "fb"
    [ 7.598] (II) Loading /usr/lib/xorg/modules/libfb.so
    [ 7.599] (II) Module fb: vendor="X.Org Foundation"
    [ 7.599] compiled for 1.14.2, module version = 1.0.0
    [ 7.599] ABI class: X.Org ANSI C Emulation, version 0.4
    [ 7.599] (II) Loading sub module "dri2"
    [ 7.599] (II) LoadModule: "dri2"
    [ 7.599] (II) Module "dri2" already built-in
    [ 7.599] (II) UnloadModule: "vesa"
    [ 7.599] (II) Unloading vesa
    [ 7.599] (==) Depth 24 pixmap format is 32 bpp
    [ 7.599] (II) intel(0): [DRI2] Setup complete
    [ 7.599] (II) intel(0): [DRI2] DRI driver: i965
    [ 7.599] (II) intel(0): Allocated new frame buffer 1920x1080 stride 7680, tiled
    [ 7.599] (II) UXA(0): Driver registered support for the following operations:
    [ 7.599] (II) solid
    [ 7.599] (II) copy
    [ 7.599] (II) composite (RENDER acceleration)
    [ 7.599] (II) put_image
    [ 7.599] (II) get_image
    [ 7.599] (==) intel(0): Backing store disabled
    [ 7.599] (==) intel(0): Silken mouse enabled
    [ 7.600] (II) intel(0): Initializing HW Cursor
    [ 7.600] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
    [ 7.600] (==) intel(0): DPMS enabled
    [ 7.600] (==) intel(0): Intel XvMC decoder enabled
    [ 7.600] (II) intel(0): Set up textured video
    [ 7.600] (II) intel(0): [XvMC] xvmc_vld driver initialized.
    [ 7.600] (II) intel(0): direct rendering: DRI2 Enabled
    [ 7.600] (==) intel(0): hotplug detection: "enabled"
    [ 7.613] (--) RandR disabled
    [ 7.634] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
    [ 7.634] (II) AIGLX: enabled GLX_INTEL_swap_event
    [ 7.634] (II) AIGLX: enabled GLX_ARB_create_context
    [ 7.634] (II) AIGLX: enabled GLX_ARB_create_context_profile
    [ 7.634] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
    [ 7.634] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
    [ 7.634] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
    [ 7.634] (II) AIGLX: Loaded and initialized i965
    [ 7.634] (II) GLX: Initialized DRI2 GL provider for screen 0
    [ 7.634] (II) intel(0): Setting screen physical size to 508 x 285
    [ 7.669] (II) config/udev: Adding input device Video Bus (/dev/input/event9)
    [ 7.669] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 7.669] (II) LoadModule: "evdev"
    [ 7.669] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [ 7.670] (II) Module evdev: vendor="X.Org Foundation"
    [ 7.670] compiled for 1.14.2, module version = 2.8.1
    [ 7.670] Module class: X.Org XInput Driver
    [ 7.670] ABI class: X.Org XInput driver, version 19.1
    [ 7.670] (II) Using input driver 'evdev' for 'Video Bus'
    [ 7.670] (**) Video Bus: always reports core events
    [ 7.670] (**) evdev: Video Bus: Device: "/dev/input/event9"
    [ 7.670] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 7.670] (--) evdev: Video Bus: Found keys
    [ 7.670] (II) evdev: Video Bus: Configuring as keyboard
    [ 7.670] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input10/event9"
    [ 7.670] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 6)
    [ 7.670] (**) Option "xkb_rules" "evdev"
    [ 7.670] (**) Option "xkb_model" "pc104"
    [ 7.670] (**) Option "xkb_layout" "us"
    [ 7.684] (II) config/udev: Adding input device Video Bus (/dev/input/event8)
    [ 7.684] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
    [ 7.684] (II) Using input driver 'evdev' for 'Video Bus'
    [ 7.684] (**) Video Bus: always reports core events
    [ 7.684] (**) evdev: Video Bus: Device: "/dev/input/event8"
    [ 7.684] (--) evdev: Video Bus: Vendor 0 Product 0x6
    [ 7.684] (--) evdev: Video Bus: Found keys
    [ 7.684] (II) evdev: Video Bus: Configuring as keyboard
    [ 7.684] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:03/LNXVIDEO:00/input/input9/event8"
    [ 7.684] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
    [ 7.684] (**) Option "xkb_rules" "evdev"
    [ 7.684] (**) Option "xkb_model" "pc104"
    [ 7.684] (**) Option "xkb_layout" "us"
    [ 7.684] (II) config/udev: Adding input device Power Button (/dev/input/event2)
    [ 7.685] (**) Power Button: Applying InputClass "evdev keyboard catchall"
    [ 7.685] (II) Using input driver 'evdev' for 'Power Button'
    [ 7.685] (**) Power Button: always reports core events
    [ 7.685] (**) evdev: Power Button: Device: "/dev/input/event2"
    [ 7.685] (--) evdev: Power Button: Vendor 0 Product 0x1
    [ 7.685] (--) evdev: Power Button: Found keys
    [ 7.685] (II) evdev: Power Button: Configuring as keyboard
    [ 7.685] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input2/event2"
    [ 7.685] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 8)
    [ 7.685] (**) Option "xkb_rules" "evdev"
    [ 7.685] (**) Option "xkb_model" "pc104"
    [ 7.685] (**) Option "xkb_layout" "us"
    [ 7.685] (II) config/udev: Adding input device Lid Switch (/dev/input/event1)
    [ 7.685] (II) No input driver specified, ignoring this device.
    [ 7.685] (II) This device may have been added with another device file.
    [ 7.685] (II) config/udev: Adding input device Sleep Button (/dev/input/event3)
    [ 7.685] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
    [ 7.685] (II) Using input driver 'evdev' for 'Sleep Button'
    [ 7.685] (**) Sleep Button: always reports core events
    [ 7.685] (**) evdev: Sleep Button: Device: "/dev/input/event3"
    [ 7.685] (--) evdev: Sleep Button: Vendor 0 Product 0x3
    [ 7.685] (--) evdev: Sleep Button: Found keys
    [ 7.685] (II) evdev: Sleep Button: Configuring as keyboard
    [ 7.685] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0E:00/input/input3/event3"
    [ 7.685] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 9)
    [ 7.685] (**) Option "xkb_rules" "evdev"
    [ 7.685] (**) Option "xkb_model" "pc104"
    [ 7.685] (**) Option "xkb_layout" "us"
    [ 7.685] (II) config/udev: Adding drm device (/dev/dri/card1)
    [ 7.685] (II) config/udev: Adding drm device (/dev/dri/card0)
    [ 7.686] (II) config/udev: Adding input device USB2.0 HD UVC WebCam (/dev/input/event6)
    [ 7.686] (**) USB2.0 HD UVC WebCam: Applying InputClass "evdev keyboard catchall"
    [ 7.686] (II) Using input driver 'evdev' for 'USB2.0 HD UVC WebCam'
    [ 7.686] (**) USB2.0 HD UVC WebCam: always reports core events
    [ 7.686] (**) evdev: USB2.0 HD UVC WebCam: Device: "/dev/input/event6"
    [ 7.686] (--) evdev: USB2.0 HD UVC WebCam: Vendor 0x4f2 Product 0xb36e
    [ 7.686] (--) evdev: USB2.0 HD UVC WebCam: Found keys
    [ 7.686] (II) evdev: USB2.0 HD UVC WebCam: Configuring as keyboard
    [ 7.686] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb3/3-1/3-1.3/3-1.3:1.0/input/input6/event6"
    [ 7.686] (II) XINPUT: Adding extended input device "USB2.0 HD UVC WebCam" (type: KEYBOARD, id 10)
    [ 7.686] (**) Option "xkb_rules" "evdev"
    [ 7.686] (**) Option "xkb_model" "pc104"
    [ 7.686] (**) Option "xkb_layout" "us"
    [ 7.686] (II) config/udev: Adding input device HDA Intel PCH Headphone (/dev/input/event5)
    [ 7.686] (II) No input driver specified, ignoring this device.
    [ 7.686] (II) This device may have been added with another device file.
    [ 7.686] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
    [ 7.686] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
    [ 7.686] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
    [ 7.686] (**) AT Translated Set 2 keyboard: always reports core events
    [ 7.686] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
    [ 7.686] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
    [ 7.686] (--) evdev: AT Translated Set 2 keyboard: Found keys
    [ 7.686] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
    [ 7.686] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
    [ 7.686] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 11)
    [ 7.686] (**) Option "xkb_rules" "evdev"
    [ 7.686] (**) Option "xkb_model" "pc104"
    [ 7.686] (**) Option "xkb_layout" "us"
    [ 7.686] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/event7)
    [ 7.686] (**) ETPS/2 Elantech Touchpad: Applying InputClass "evdev touchpad catchall"
    [ 7.686] (**) ETPS/2 Elantech Touchpad: Applying InputClass "touchpad catchall"
    [ 7.687] (**) ETPS/2 Elantech Touchpad: Applying InputClass "Default clickpad buttons"
    [ 7.687] (II) LoadModule: "synaptics"
    [ 7.687] (II) Loading /usr/lib/xorg/modules/input/synaptics_drv.so
    [ 7.687] (II) Module synaptics: vendor="X.Org Foundation"
    [ 7.687] compiled for 1.14.1, module version = 1.7.1
    [ 7.687] Module class: X.Org XInput Driver
    [ 7.687] ABI class: X.Org XInput driver, version 19.1
    [ 7.687] (II) Using input driver 'synaptics' for 'ETPS/2 Elantech Touchpad'
    [ 7.687] (**) ETPS/2 Elantech Touchpad: always reports core events
    [ 7.687] (**) Option "Device" "/dev/input/event7"
    [ 7.810] (II) synaptics: ETPS/2 Elantech Touchpad: found clickpad property
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: x-axis range 0 - 3260 (res 32)
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: y-axis range 0 - 2119 (res 32)
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: pressure range 0 - 255
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: finger width range 0 - 15
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: buttons: left double triple
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: Vendor 0x2 Product 0xe
    [ 7.810] (**) Option "TapButton1" "1"
    [ 7.810] (**) Option "TapButton2" "2"
    [ 7.810] (**) Option "TapButton3" "3"
    [ 7.810] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
    [ 7.810] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
    [ 7.810] (**) ETPS/2 Elantech Touchpad: always reports core events
    [ 7.853] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio4/input/input8/event7"
    [ 7.853] (II) XINPUT: Adding extended input device "ETPS/2 Elantech Touchpad" (type: TOUCHPAD, id 12)
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MinSpeed is now constant deceleration 2.5
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) MaxSpeed is now 1.75
    [ 7.853] (**) synaptics: ETPS/2 Elantech Touchpad: (accel) AccelFactor is now 0.051
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) keeping acceleration scheme 1
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration profile 1
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration factor: 2.000
    [ 7.853] (**) ETPS/2 Elantech Touchpad: (accel) acceleration threshold: 4
    [ 7.853] (--) synaptics: ETPS/2 Elantech Touchpad: touchpad found
    [ 7.853] (II) config/udev: Adding input device ETPS/2 Elantech Touchpad (/dev/input/mouse0)
    [ 7.853] (**) ETPS/2 Elantech Touchpad: Ignoring device from InputClass "touchpad ignore duplicates"
    [ 7.853] (II) config/udev: Adding input device PC Speaker (/dev/input/event4)
    [ 7.853] (II) No input driver specified, ignoring this device.
    [ 7.853] (II) This device may have been added with another device file.
    Found this recent thread in the forums, I'll give REISUB a try late, but the times it freezed I remember trying to blindly reboot it, or switching off virtual console and couldn't.
    In case it's of any use, this is my # uname -a
    Linux arch 3.10.3-1-ARCH #1 SMP PREEMPT Fri Jul 26 11:26:59 CEST 2013 x86_64 GNU/Linux
    Could it have something to do with the nvidia optimus setup that this laptop has? When installing arch I found out that there was no support yet for it so I'm just using the intel drivers (following what the arch wiki said).
    Any ideas or advice to point me in the right direction would be very much appreciated.
    Thanks in advance.
    Last edited by contiver (2013-08-16 20:25:34)

    I don't start st in my .xinitrc. I launch it from dmenu and usually everything is fine. If I launch it from dwm's internal command using Alt-Shf-Return, X freezes 100% of the time. A workaround was suggested by st's main developer to call st like this:
    static const char *termcmd[] = { "/bin/sh", "-c", "st", NULL };
    but it didn't work for me.
    Very rarely X will freeze anyway. I haven't been able to pin it down. When X fails, my journal returns this:
    BUG: unable to handle kernel paging request at ffffc90014ce8000
    IP: [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    PGD 7c00b067 PUD 7c018067 PMD 7b3eb067 PTE 0
    Oops: 0002 [#1] PREEMPT SMP
    Modules linked in: nls_cp437 vfat fat snd_usb_audio snd_usbmidi_lib snd_hwdep snd_rawmidi snd_seq_device snd_pcm snd_page_alloc snd_timer
    CPU: 1 PID: 7520 Comm: X Not tainted 3.10.5-1-ck #1
    Hardware name: /D410PT, BIOS MOPNV10N.86A.0155.2009.1106.0430 11/06/2009
    task: ffff88007aa786b0 ti: ffff8800797ee000 task.ti: ffff8800797ee000
    RIP: 0010:[<ffffffff812bfe7f>] [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    RSP: 0018:ffff8800797efaa8 EFLAGS: 00010212
    RAX: 0000000003ffff5c RBX: 0000000000000000 RCX: 0000000000000000
    RDX: 0000000003ffff5c RSI: ffffc90014901520 RDI: ffffc90014ce7fe0
    RBP: ffff8800797efab8 R08: 00000000ffffd700 R09: 0000000003f83204
    R10: 0000000000000000 R11: ffffc90014ce7fd8 R12: ffffffffffffffff
    R13: ffffc90014901520 R14: ffffffff812bfdf0 R15: 0000000000000320
    FS: 00007fb350033880(0000) GS:ffff88007ea80000(0000) knlGS:0000000000000000
    CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: ffffc90014ce8000 CR3: 000000007b104000 CR4: 00000000000007e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Stack:
    0000000000000000 ffff88007a4d3000 ffff8800797efb28 ffffffff812bfbb9
    ffffffff00000000 ffff88007c00c000 0000000000000000 ffffffff8186f240
    0000000000000000 ffffffff00000006 ffffd700797efb58 ffff88007a4d3000
    Call Trace:
    [<ffffffff812bfbb9>] cfb_fillrect+0x1c9/0x400
    [<ffffffff812ba2e5>] bit_clear_margins+0x165/0x190
    [<ffffffff812b3633>] fbcon_clear_margins+0x63/0x90
    [<ffffffff812b7a9f>] fbcon_switch+0x3df/0x570
    [<ffffffff813200bd>] redraw_screen+0x17d/0x240
    [<ffffffff812b6eeb>] fbcon_blank+0x20b/0x2d0
    [<ffffffff81320767>] do_unblank_screen+0xa7/0x1b0
    [<ffffffff813175d1>] vt_ioctl+0x10d1/0x1170
    [<ffffffff8130b407>] tty_ioctl+0x277/0xb90
    [<ffffffff8118fb21>] ? mntput_no_expire+0x41/0x150
    [<ffffffff81183a3e>] do_vfs_ioctl+0x2de/0x4c0
    [<ffffffff8117328e>] ? ____fput+0xe/0x10
    [<ffffffff8107766c>] ? task_work_run+0x9c/0xe0
    [<ffffffff81183ca3>] SyS_ioctl+0x83/0xa0
    [<ffffffff814bab9d>] system_call_fastpath+0x1a/0x1f
    Code: 08 45 01 d8 31 d2 44 89 c0 41 f7 f1 83 f8 07 89 c2 76 4f 44 8d 08 48 8d 3e 0f 1f 00 4c 89 17 4c 89 57 08 4c 89 57 10 4c 89 57 18 <4
    RIP [<ffffffff812bfe7f>] bitfill_aligned+0x8f/0x140
    RSP <ffff8800797efaa8>
    CR2: ffffc90014ce8000
    ---[ end trace aff6cb5ad5097aef ]---

  • Performance issue in browsing SSAS cube using Excel for first time after cube refresh

    Hello Group Members,
    This is a continuation of my earlier blog question -
    https://social.msdn.microsoft.com/Forums/en-US/a1e424a2-f102-4165-a597-f464cf03ebb5/cache-and-performance-issue-in-browsing-ssas-cube-using-excel-for-first-time?forum=sqlanalysisservices
    As that thread is marked as answer, but my issue is not resolved, I am creating a new thread.
    I am facing a cache and performance issue for the first time when I try to open a SSAS cube connection using Excel (using Data tab  -> From Other Sources --> From Analysis Services) after daily cube refresh. In end users system (8 GB RAM but around
    4GB available RAM), for the first time, it takes 10 minutes to open the cube. From next run onwards, its open up quickly within 10 secs.
    We have daily ETL process running in high end servers. The configuration of dedicated SSAS cube server is 8 core, 64GB RAM. In total we have 4 cube DB - out of which for 3 is full cube refresh and 1 is incremental refresh. We have seen after daily cube
    refresh, it takes 10 odd minutes to open the cube in end users system. From next time onwards, it opens up really fast with 10 secs. After cube refresh, in server systems (32 GB RAM, around 4GB available RAM), it takes 2 odd minutes to open the cube.
    Is there, any way we could reduce the time taken for first attempt ?
    As mentioned in my previous thread, we have already implemented a cube wraming cache. But, there is no improvement.
    Currently, the cumulative size of the all 4 cube DB are more than 9 GB in Production and each cube DB having 4 individual cubes in average with highest cube DB size is 3.5 GB. Now, the question is how excel works with SSAS cube after
    daily cube refresh?
    Is it Excel creates a cache of the schema and data after each time cube is refreshed and in doing so it need to download the cube schema in Excel's memory? Now to download the the schema and data of each cube database from server to client, it will take
    a significant time based on the bandwidth of the network and connection.
    Is it anyway dependent to client system RAM ? Today the bigest cube DB size is 3.5 GB, tomorrow it will be 5-6 GB. Now, though client system RAM is 8 GB, the available or free RAM would be around 4 GB. So, what will happen then ?
    Best Regards, Arka Mitra.

    Could you run the following two DMV queries filling in the name of the cube you're connecting to. Then please post back the row count returned from each of them (by copying them into Excel and counting the rows).
    I want to see if this is an issue I've run across before with thousands of dimension attributes and MDSCHEMA_CUBES performance.
    select [HIERARCHY_UNIQUE_NAME]
    from $system.mdschema_hierarchies
    where CUBE_NAME = 'YourCubeName'
    select [LEVEL_UNIQUE_NAME]
    from $system.mdschema_levels
    where CUBE_NAME = 'YourCubeName'
    Also, what version of Analysis Services is it? If you connect Object Explorer in Management Studio to SSAS, what's the exact version number it says on the top server node?
    http://artisconsulting.com/Blogs/GregGalloway

  • Net Price showing zero while using BAPI_PO_CREATE1 for me21n

    Dear All,
    I am using BAPI_PO_CREATE1 for ME21N. The problem is, after execution of the program the error msg it shows-
    No instance of object type PurchaseOrder has been created. External reference:
    Purchase order still contains faulty items
    Net price must be greater than 0
    The values are coming from excel file.
    Please tell me where I am doing wrong.
    With regards,
    Rosaline.

    Hi,
    Symptom
    You create a purchase order with BAPI_PO_CREATE1 or you add an item to an existing purchase order with BAPI_PO_CHANGE. You assign a value in field POITEM-NET_PRICE. However, this value is not transferred. If it was not possible for you to determine any conditions, the system generated the error message 06218 'Net price must be greater than 0'.
    Other terms
    BAPI_PO_CREATE1, BAPI_PO_CHANGE, price, net price, gross price, conditions, price determination, condition type, 06218, EKPO-NETPR, NETPR, POITEM-NET_PRICE, NET_PRICE, PO_PRICE, BAPI_PO_PRICE, BUS2012, PurchaseOrder.CreateFromData1, CreateFromData1, PurchaeOrder.Change
    Reason and Prerequisites
    This function has not been available up to now. You could also assign conditions via the condition tables.
    Read also Notes 399791, 428621, 529287, 578253 and 539950 for this.
    Solution
    The present note adds field PO_PRICE to table POITEM. PO_PRICE can have the values ' ', '1' or '2' with the following meaning:
        PO_PRICE = ' ': The price determination is carried out as before.
        PO_PRICE = '1': The value assigned in field NET_PRICE is transferred as a gross price, that is it is set in the condition type that is defined as a base price in the calculation schema. All other condition types remain unchanged. No conditions are copied from the last document.
        PO_PRICE = '2': The value assigned in field NET_PRICE is transferred as a net price, that is it is set in the condition type that is defined as base price in the calculation scheme. All other condition types are deleted.
    Note the following
    The following restrictions apply to field PO_PRICE:
        If you assign conditions via the BAPI interface, these are always transferred. This is carried out independently of the value that you assign in field PO_PRICE.
        If you add a new item to a purchase order with BAPI_PO_CHANGE, it does not suffice to fill field POITEM-NET_PRICE on item level. The corresponding currency must be specified explicitly on header level.
        You can only use field PO_PRICE during the creation of a purchase order item. If you want to change the price of an already existing item, you can only do this via the conditions.
        If you fill field POITEM-PO_PRICE, you must enter an 'X' in POITEMX-PO_PRICE so that the value is transferred.
    Correction
    The correction is made available via R/3 support package. If you want to implement the note manually, proceed as follows:
        1. Make sure that your system contains Notes 494759, 552189 and 578253.
        2. Create data type BAPI_PO_PRICE with the following attributes:
                        Short text:
                           Price transfer indicator: 1  = gross, 2 = net
                        Package: ME
                        Domain: BPUEB
        3. Extend structure BAPIMEPOITEM (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPI_PO_PRICE
        4. Extend structure BAPIMEPOITEMX (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPIUPDATE
        5. Extend structure MEPOITEM_DATA (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPI_PO_PRICE
        6. Extend structure MEPOITEM_DATAX (directly after NO_ROUNDING):
                        Component: PO_PRICE
                        Component type: BAPIUPDATE
        7. Implement the correction instructions in your system.
    regards,
    Ravi
    Edited by: Parupelly on Dec 14, 2011 1:30 PM

  • Can I use iPod for time machine back up?

    I have several iPods that I don't use, and would like to use them as time machine back up drives, for multiple computers.
    They are 30gb iPod videos. I am aware they aren't as reliable as an actual external hard drive and that this much read/write can cause the iPod to burn out, but for these purposes I don't care.
    I have 300 computers that I want to restore to one master, as they are all used for the same purpose, but currently they all have OS 10.5.x of varying versions. I currently use a time machine backup on an external hard drive to restore the systems, but I have 15 iPod videos, and I would like to use 2-3 of them, to speed the process up.
    I use carbon copy cloner once I get a system restored, to restore the stations around it, but time machine is about 15% faster than using CCC, so I would like to use these iPods to increase my ability to restore these systems on a regular basis without having to buy external hard drives or enclosures to make external HDs.
    I have tried:
    Erasing the iPod in disk utility.
    -It will erase the volume as HFS+ (extended journaled) but it won't erase the main device as it shows in Disk utility, it consistently stays as Fat32.
    --Same idea if I recreate the partition. I tried GUID partition scheme, Apple Partition Map and Master boot record, but all produce the same result.
    I also selected the iPod and attempted a zero-out of the whole iPod using the security options in disk utility. The system still will not let me use it for time machine.
    Has anyone been able to use an iPod for backup? Are there any other techniques anyone can suggest to get this iPod to work?
    Thanks for your help.

    And to clarify, originally I made sure disk usage was enabled on the iPod.
    I have also tried dragging and dropping the contents of a time machine backup to the iPod, but it's still not seen as a backup volume. I suspect there are some hidden files that enable a volume as time machine capable. Any ideas on how to maybe copy the hidden files or any other methods that might work?

  • Problem configuring SOA suite to use OID for authentication

    We are in the process of rebuilding our environment to use the full SOA suite with our OID server for authentication (was previously just BPEL using AD directly), and have encountered several problems (below). We have rebuilt the OID server, and reinstalled the SOA suite into a clean ORACLE_HOME to no avail.
    We first rebuilt the OID server using the following steps (derived from Oracle® Internet Directory Administrator's Guide):
    1)     Create the Import and Export profiles for AD synchronization. We did this using the Directory Integration and Provisioning Server Administration tool under “Active Directory Configuration”
    2)     Modify the map file to specify the correct OU mappings between AD and OID.
    3)     Update the profile with the new map file using “dipassistant.bat mp”
    4)     Bootstrap the import profile using “dipassistant.bat bootstrap”
    5)     Start a new instance of the Integration server (odisrv) running on config set 1 (the config set containing the Active Directory import/export profiles) using “oidctl”
    6)     Set the Import profile to Enable. The OID server does not export changes to AD in our current configuration, so the Export profile is left on disable (and not bootstrapped)
    At this point it appears that the AD synchronizes correctly into our new OID server.
    Next we installed the SOA suite:
    1)     We ran “irca.bat” on our database server to create the ORABPEL, ORAESB, and ORAWSM schemas and associated integration repository structure.
    2)     After launching the SOA suite installer, we selected Advanced Install.
    3)     On the next screen, we selected J2EE Server, Web Server, and SOA Suite.
    4)     We then provided the credentials for our Oracle database, and the passwords for ORABPEL, ORAESB, and ORAWSM.
    5)     We configured our new AS instance as an administration instance, but did not opt to use from a separate HTTP server, and did not make this instance part of an OAS cluster topology.
    And finally, we configured our new SOA suite instance to use OID for authentication (using the instructions in Oracle® BPEL Process Manager Administrator's Guide section 2.1.3):
    1)     Used the configure_oid.bat command to seed OID with required users only.
    2)     Logged into the OracleAS Control Console
    3)     Chose the oc4j_soa instance, then Administration->Security->Identity Management
    4)     Configured the OID server using a non-ssl connection and the cn=orcladmin account.
    5)     When prompted, chose to reconfigure all applications in the oc4j_soa instance to OID, but not to use SSO for any of them.
    6)     Copied the contents of ORACLE_HOME\j2ee\home\config\jazn.xml to ORACLE_HOME\j2ee\oc4j_soa\config\jazn.xml
    7)     Restarted the application server.
    After this procedure, we encountered the following issues:
    1)     The BPEL console appears to authenticate users correctly out of OID, but no users have access to the default domain, including bpeladmin and oc4jadmin. All users receive a similar access denied message when attempting to log into the BPEL Admin Console.
    2)     We cannot upload a BPEL process to our new server via JDeveloper’s standard BPEL deployment mechanisms. The connection appears to be working properly and passes all tests, but on uploading a process we get a Java AccessDeniedException. ESB appears to be functioning properly, and accepts uploaded projects without issue.

    Bassman,
    We recently configured our SOA Suite to use OID and SSO. We had the same issues you are having, and we found the resolutions in a blog from Jaas Poot (http://blog.jpoot.com/category/oracle-appserver/oid-ldap/). For the BPEL domain access, this involved going to the data-sources.xml file and changing the database passwords from using ->pwForOrabpel for the orabpel schema and ->pwForOraesb for the oraesb schema to the real passwords; the blog explains more about this.
    The blog also covers the JDeveloper deployment issue, and another issue we encountered, where we couldn't access the BPEL Admin console. All of these were resolved following the steps in the blog.
    Hope this helps
    Candace

  • Were can I find a good turtorial for making a contact scheme in flash?

    I am making a flash site, and wonder were I can find a good turtorial for making a contact scheme, where people can answer questions who is sent to my email.

    Just search Google using the terms "AS3 contact tutorial" and you should find a few good tutorials.

  • Getting error when updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1

    Hi,
    I`m getting error message like "None of the apps in your project can be activated in the target. The manifest file of one or more apps contain API sets or Office applications that are not supported by
    the target Office client. To debug those apps, update manifest files to exclude any unsupported API sets or Office applications, and then start the project again. Alternatively, you can debug your apps by using Office 365 as a target." when when
    updating the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1 in manifest file though i have added host elements.
    any help in this regard is highly appreciated
    Thanks,
    Santosh Sutar  

    Hi Satosh Sutar,
    Based on the description, you got the error message when you update the apps from version 1.0 to 1.1.
    From the error message, it seems the menifest include some settings no allowed in the new version. Would you mind sharing more detail about how you update the project?
    And here is an article about updating apps for Office and menifest schema files in the project for your reference:
    How to: Update the JavaScript API for Office and manifest schema files in your Visual Studio project from version 1.0 to 1.1
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Use cases for the SAP HANA Appliance for SAP FI-Accts.Payable

    Hello SAP HANA friends:
    Are there any compelling use cases for the SAP HANA Appliance for SAP FI-AP Accounts Payable module?
    CO-PA and CRM have many immediate use cases, but I'm looking for the use case for Accounts Payable,
    either from a cash flow perspective or performance.
    Any and all comments are appreciated.
    Regards,
    Joe Gonzales
    856 912 1136

    Hi,
    In SQL console please execute below query .
    GRANT SELECT ON SCHEMA <schema Name> TO "_SYS_REPO";
    BR
    Sumeet

  • Using XDB for manipulating table BLOBS?

    Hi!
    I have got a database table with a BLOB column which contains MS Office documents.
    For editing the documents I have written a small application for downloading the document, edit it with Office and upload it again to the database. Can I use XDB for this task? If yes it would be easier to use because the users don't have to download and upload the documents...
    I would expect the following - when the user clicks for editing a document, I copy the blob-column to a temporary XDB directory (for example /public/editing). The document gets opened from the XDB directory (with file assosiation in the right office program) and the users edit and save the document directly to the XDB folder. When they have finished I update the table BLOB with the XDB file and remove the file from XDB.
    Can I use XDB therefore or do you know better solutions? I would be glad about any tips!
    Thanks
    Markus

    I assume that using the XML format for word documents is not an option... If is you register a dummy schema for WORD-ML (Don't try and register the complete schema) and then have a table level trigger to store the content back in your table.
    The problem is bi-directional..
    First, when the user wants to open a document how are you going to ensure that the 'virtual document' in the XML DB repository has the correct content. Even a trigger on XDB$RESOURCE cannot help here..
    Second, for writing the content back in theory a trigger on XDB$RESOURCE could work. However this is an unsupported confguration, since the trigger could slow down repository operation to the point where protocol timeouts could occur.
    The 11g XML DB repository events feature was designed to solve these problems...
    Message was edited by:
    mdrake

  • JAXB for dif version of schema

    Hi, There:
    Thanks in advance if anyone has any idea about my question
    I am using JAXB for databinding, my schema has two versions. The differnce of two versions is just one namespace: for example
    one version is:
    <?xml version="1.0"?>
    <xs:schema targetNamespace="http://schemas.active-endpoints.com/pdd/2006/08/pdd.xsd"
    xmlns:tns="http://schemas.active-endpoints.com/pdd/2006/08/pdd.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    The other version is
    <?xml version="1.0"?>
    <xs:schema targetNamespace="http://schemas.active-endpoints.com/pdd/2005/09/pdd.xsd"
    xmlns:tns="http://schemas.active-endpoints.com/pdd/2005/09/pdd.xsd"
    xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    Otherwise the rest of scheamds are basically the same with only a few elements difference. I need to create a unified java package to handle the xml files from both schemas. Currently the generated package using version 1 cannot handle version 2's xml file, vice versa. Any one can help with this?
    Appreciated
    Tbzhang

    The April 2000 and August 2000 working drafts are supported. Support for schema recommendation is coming in 9.1.

Maybe you are looking for