Re: ThinkPad T60 screen brightness

2014-07-09 Thread Riccardo Mottola
Hi,

Dmitry Orlov wrote:
 Is Your have two video cards?
 Same problem exists on Ubuntu Linux.
 Try xrandr
 F.e. xrandr --output LVDS1 --brightness 0.75 
It looks to me that it is changing the color palette to make it look
brighter/darker, but not actually controlling the backlight intensity.

Riccardo



Re: ThinkPad T60 screen brightness

2014-07-08 Thread Riccardo Mottola

Hi Matthew,

Matthew Clarke wrote:

Fri, Jun 27, 2014 at 00:18:57 +0200, Riccardo Mottola may have written:



$ xbacklight
No outputs have backlight property


Suggestions? Getting the two keys (those activated by the blue Fn) would be
the best of course.


Same thing on my T60, but if I suspend and resume, those keys work until
the next reboot.

Matt.

I forgot to test this, I left the mail as to read.

It works indeed. Actually, it is not that they just work, but putting 
the computer to sleep and turning it on again shows immediately a bright 
screen. Using the keys then has a jump to the wrong brighness and ater 
going up/down they sync again and everything is smooth as in OpenBSD 5.4


Do you have the model with integrated video or with the ATI radeon card? 
See my dmesg below.


the error lines are not very inspiring, do you get them too?

Riccardo

dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2500 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF

real mem  = 3219484672 (3070MB)
avail mem = 3154567168 (3008MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/01/10, BIOS32 rev. 0 @ 0xfd6b0, 
SMBIOS rev. 2.4 @ 0xe0010 (68 entries)

bios0: vendor LENOVO version 79ETE6WW (2.26 ) date 04/01/2010
bios0: LENOVO 2007WRU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT 
SSDT SSDT
acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) 
EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) 
HDEF(S4)

acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2500 @ 2.00GHz (GenuineIntel 686-class) 2 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM,PERF

ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf000, bus 0-63
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 3 (EXP1)
acpiprt4 at acpi0: bus 4 (EXP2)
acpiprt5 at acpi0: bus 12 (EXP3)
acpiprt6 at acpi0: bus 21 (PCI1)
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpipwrres0 at acpi0: PUBS, resource for USB0, USB2, USB7
acpitz0 at acpi0: critical temperature is 127 degC
acpitz1 at acpi0: critical temperature is 99 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model 92P1137 serial   121 type LION oem SANYO
acpibat1 at acpi0: BAT1 not present
acpiac0 at acpi0: AC unit offline
acpithinkpad0 at acpi0
acpidock0 at acpi0: GDCK not docked (0)
bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 
0xdc000/0x4000! 0xe/0x1!

cpu0: Enhanced SpeedStep 1996 MHz: speeds: 2000, 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03
ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
radeondrm0 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00
drm0 at radeondrm0
radeondrm0: apic 1 int 16
azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: msi
azalia0: codecs: Analog Devices AD1981HD, Conexant/0x2bfa, using Analog 
Devices AD1981HD

audio0 at azalia0
ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20
pci2 at ppb1 bus 2
em0 at pci2 dev 0 function 0 Intel 82573L rev 0x00: msi, address 
00:15:58:2e:43:6c

ppb2 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 21
pci3 at ppb2 bus 3
wpi0 at pci3 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: 
msi, MoW2, address 00:13:02:9a:52:1b

ppb3 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 22
pci4 at ppb3 bus 4
ppb4 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 23
pci5 at ppb4 bus 12
uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16
uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17
uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19
ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb5 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2
pci6 at ppb5 bus 21
cbb0 at 

Re: ThinkPad T60 screen brightness

2014-06-27 Thread Dmitry Orlov

Is Your have two video cards?
Same problem exists on Ubuntu Linux.
Try xrandr
F.e. xrandr --output LVDS1 --brightness 0.75

On 27.06.2014 03:18, Riccardo Mottola wrote:

Hi,

I noticed that since I upgraded to 5.5, the two keys that controls the 
screen brightness do not work anymore, my LCD is constantly set to a 
mid-dark. This happens when the new framebuffer console runs, but also 
when X11 runs.


During BIOS post or furing the first boot phase, setting works, but 
will reset as soon as the framebuffer loads.


Posts on the net seem to succest xbacklight, but I get:

$ xbacklight
No outputs have backlight property


Suggestions? Getting the two keys (those activated by the blue Fn) 
would be the best of course.


Riccardo




ThinkPad T60 screen brightness

2014-06-26 Thread Riccardo Mottola

Hi,

I noticed that since I upgraded to 5.5, the two keys that controls the 
screen brightness do not work anymore, my LCD is constantly set to a 
mid-dark. This happens when the new framebuffer console runs, but also 
when X11 runs.


During BIOS post or furing the first boot phase, setting works, but will 
reset as soon as the framebuffer loads.


Posts on the net seem to succest xbacklight, but I get:

$ xbacklight
No outputs have backlight property


Suggestions? Getting the two keys (those activated by the blue Fn) would 
be the best of course.


Riccardo



Re: ThinkPad T60 screen brightness

2014-06-26 Thread Matthew Clarke
Fri, Jun 27, 2014 at 00:18:57 +0200, Riccardo Mottola may have written:

 Hi,
 
 I noticed that since I upgraded to 5.5, the two keys that controls the
 screen brightness do not work anymore, my LCD is constantly set to a
 mid-dark. This happens when the new framebuffer console runs, but also when
 X11 runs.
 
 During BIOS post or furing the first boot phase, setting works, but will
 reset as soon as the framebuffer loads.
 
 Posts on the net seem to succest xbacklight, but I get:
 
 $ xbacklight
 No outputs have backlight property
 
 
 Suggestions? Getting the two keys (those activated by the blue Fn) would be
 the best of course.
 
 Riccardo

Same thing on my T60, but if I suspend and resume, those keys work until
the next reboot.

Matt.
-- 
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.  -- Kernighan
-- quoted by Quentyn Taylor