[argyllcms] Re: Lenovo ThinkPad W530 Colorimeter

  • From: William Cohen <giantklein@xxxxxxxxx>
  • To: "argyllcms@xxxxxxxxxxxxx" <argyllcms@xxxxxxxxxxxxx>
  • Date: Tue, 21 Aug 2012 21:12:43 -0700 (PDT)

I don't entirely understand how to read the disassembled output in DSDT.dsl, 
but The LID device seems to have some other checks in there before returning 
0x01 (open) or 0x00 (closed):


        Device (LID)
        {
            Name (_HID, EisaId ("PNP0C0D"))
            Method (_LID, 0, NotSerialized)
            {
                If (LAnd (LEqual (\ILNF, 0x00), LEqual (\PLUX, 0x00)))
                {
                    If (\H8DR)
                    {
                        Return (\_SB.PCI0.LPC.EC.HPLD)
                    }
                    Else
                    {
                        If (And (\RBEC (0x46), 0x04))
                        {
                            Return (0x01)
                        }
                        Else
                        {
                            Return (0x00)
                        }
                    }
                }
                Else
                {
                    Return (0x01)
                }
            }

If anyone wants to look at the complet DSDT.dsl file to try to figure out how 
to keep the Lenovo thinkpad w530 display on, it is available at 
http://wcohen.fedorapeople.org/DSDT.dsl

-Will


>________________________________
> From: William Cohen <giantklein@xxxxxxxxx>
>To: "argyllcms@xxxxxxxxxxxxx" <argyllcms@xxxxxxxxxxxxx> 
>Sent: Wednesday, August 8, 2012 10:01 PM
>Subject: [argyllcms] Re: Lenovo ThinkPad W530 Colorimeter
> 
>
>Hi,
>
>
>I did some investigation and found that the lid-close is controlled by a 
>magnetic sensor on the left side of the screen about 4/10 of the way up from 
>the bottom of the lcd bezel.  There is a matching magnet on the left edge of 
>the computer directly to the left of the CapsLocks key.  I tried using the 
>gnome-tweak-tool to make "Laptop lid close action on battery" and "Laptop lid 
>close action when on AC" be "Nothing".  However, the LCD screen is still 
>blanked even with those set to nothing.  Even when the machine is in the bios 
>setup screen the screen will be blanked when a magnet is next to the sensor.  
>The sesnor also appears to disable input from the laptop's keyboard.  Can see 
>the magnet affect the state of /proc/acpi/button/lid/LID/state with:
>
>
># while true; do cat /proc/acpi/button/lid/LID/state; sleep 1; done
>state:      open
>state:      open
>state:      open
>state:      closed
>state:      closed
>...
>
>
>
>The kernel does load the thinkpad_acpi kernel module which appears to have a 
>number of controls related to the display, but I do not know if there are any 
>fields in there would address the problem. There is documentation at:
>
>
>
>http://lxr.linux.no/#linux+v3.5/Documentation/laptops/thinkpad-acpi.txt
>
>
>-Will
>
>
>
>
>>________________________________
>> From: Graeme Gill <graeme@xxxxxxxxxxxxx>
>>To: argyllcms@xxxxxxxxxxxxx 
>>Sent: Sunday, August 5, 2012 11:37 PM
>>Subject: [argyllcms] Re: Lenovo ThinkPad W530 Colorimeter
>> 
>>William Cohen wrote:
>>> I am willing to try experimental code and locally compiled code to get
>>> the colorimeter working Argyllcms running on Linux.
>>
>>Hi,
>>    getting the instrument recognised is probably the easy part.
>>The hard part is figuring out how to keep the display enabled
>>with the lid shut. Unless or until you can figure that out,
>>there's no much point in pursuing the use of this instrument.
>>
>>[ You would need to add 0x5010 to the recognised PID in spectro/insttypes.c
>>  as well as fixing any udev rules. ]
>>
>>Graeme Gill.
>>
>>
>>
>>
>
>

Other related posts: