Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
keyboard looses light [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Sun Sep 12, 2010 11:11 pm    Post subject: keyboard looses light [SOLVED] Reply with quote

hi,
for a year now, I'm using a Logitech Illuminated Keyboard via USB. It has a decent backlight you can adjust with a special key.
everything (except some of the function keys) worked fine until recently. I really can't reconstruct what triggered the new behaviour (xorg-server or any other update, the plugging of a faulty USB HDD...), but for a while now the keyboard performs some kind of unsolicited power save: 3 sec after the last keystroke it switches off the backlight. this can be really annoying when working in a dark room.

I did sort of an elimination of error procedure:
- it's not the keyboard hardware that broke: tried the keyboard with another linux computer (running ubuntu), worked fine there
- it's not the USB port hardware of my PC: when I fire up VMWare Player and click in that window, the light stays ON

so I assume it must be the keyboard driver or something connected, right?

does anybody have an idea what could cause this nasty little problem? xorg-server or -driver? hal? udev? some kernel driver?

I'm running KDE on xorg-1.8.2, here's my config:
Quote:

# emerge --info
Portage 2.1.8.3 (default/linux/amd64/10.0/desktop/kde, gcc-4.3.4, glibc-2.11.2-r0, 2.6.34-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.34-gentoo-r6-x86_64-Intel-R-_Core-TM-_i5_CPU_661_@_3.33GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 08 Sep 2010 20:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash: 4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python: 2.6.5-r3, 3.1.2-r4
dev-util/ccache: 2.4-r7
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
sys-devel/make: 3.81-r2
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://91.121.125.139/gentoo-distfiles/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en he ru"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/portage"
PORTDIR="/usr/portage"
SYNC="rsync://rsync10.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aim alsa amd64 amr berkdb bluetooth branding bzip2 cairo cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran ftp gdbm gif gimp gphoto2 gpm gstreamer gtk hal iconv icq idea imap ipv6 jabber jpeg jpeg2k kde lcms ldap libnotify mad mikmod mjpeg mmx mng modules mp3 mp4 mpeg msn mudflap multilib ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 quicktime readline reflection samba scanner sdl session sox spell sse sse2 ssl startup-notification svg sysfs tcpd tiff timidity truetype udev unicode usb v4l vcd vorbis x264 xcb xine xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en he ru" RUBY_TARGETS="ruby18" SANE_BACKENDS="avision" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


Quote:

# eix xorg-server
[I] x11-base/xorg-server
Available versions: 1.6.5-r1 1.7.6 1.7.7-r1 (~)1.8.2 {debug dmx doc hal ipv6 kdrive minimal nptl sdl static-libs tslib +udev xorg}
Installed versions: 1.8.2(00:17:51 13.09.2010)(ipv6 nptl udev xorg -dmx -doc -hal -kdrive -minimal -static-libs -tslib)
Homepage: http://xorg.freedesktop.org/
Description: X.Org X servers


(hal useflag deactivated via package.use)

Quote:
# eix xorg-driver
[I] x11-base/xorg-drivers
Available versions: 1.6 1.7 (~)1.8 {input_devices_acecad input_devices_aiptek input_devices_citron input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_mutouch input_devices_penmount input_devices_synaptics input_devices_tslib input_devices_virtualbox input_devices_vmmouse input_devices_void input_devices_wacom video_cards_apm video_cards_ark video_cards_ast video_cards_chips video_cards_cirrus video_cards_dummy video_cards_epson video_cards_fbdev video_cards_fglrx video_cards_geode video_cards_glint video_cards_i128 video_cards_i740 video_cards_impact video_cards_intel video_cards_mach64 video_cards_mga video_cards_neomagic video_cards_newport video_cards_nouveau video_cards_nv video_cards_nvidia video_cards_r128 video_cards_radeon video_cards_radeonhd video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_sunbw2 video_cards_suncg14 video_cards_suncg3 video_cards_suncg6 video_cards_sunffb video_cards_sunleo video_cards_suntcx video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_via video_cards_virtualbox video_cards_vmware video_cards_voodoo video_cards_xgi}
Installed versions: 1.8(17:28:58 16.07.2010)(input_devices_evdev video_cards_intel -input_devices_acecad -input_devices_aiptek -input_devices_elographics -input_devices_fpit -input_devices_joystick -input_devices_keyboard -input_devices_mouse -input_devices_penmount -input_devices_synaptics -input_devices_tslib -input_devices_virtualbox -input_devices_vmmouse -input_devices_void -input_devices_wacom -video_cards_apm -video_cards_ark -video_cards_ast -video_cards_chips -video_cards_cirrus -video_cards_dummy -video_cards_epson -video_cards_fbdev -video_cards_fglrx -video_cards_geode -video_cards_glint -video_cards_i128 -video_cards_i740 -video_cards_impact -video_cards_mach64 -video_cards_mga -video_cards_neomagic -video_cards_newport -video_cards_nouveau -video_cards_nv -video_cards_nvidia -video_cards_r128 -video_cards_radeon -video_cards_radeonhd -video_cards_rendition -video_cards_s3 -video_cards_s3virge -video_cards_savage -video_cards_siliconmotion -video_cards_sis -video_cards_sisusb -video_cards_sunbw2 -video_cards_suncg14 -video_cards_suncg3 -video_cards_suncg6 -video_cards_sunffb -video_cards_sunleo -video_cards_suntcx -video_cards_tdfx -video_cards_tga -video_cards_trident -video_cards_tseng -video_cards_v4l -video_cards_vesa -video_cards_via -video_cards_virtualbox -video_cards_vmware -video_cards_voodoo -video_cards_xgi)
Homepage: http://www.gentoo.org/
Description: Meta package containing deps on all xorg drivers


I have no xorg.conf anywhere.


Last edited by freifunk_connewitz on Fri Sep 24, 2010 8:37 am; edited 4 times in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Mon Sep 13, 2010 12:25 am    Post subject: Reply with quote

Does the problem still occur when not running X?
Back to top
View user's profile Send private message
adramalech707
Apprentice
Apprentice


Joined: 06 Oct 2009
Posts: 236
Location: California, USA

PostPosted: Mon Sep 13, 2010 3:15 am    Post subject: Reply with quote

i forget because i am running a `amd64 build but aren't u suppose to move to udev?? i think it might alleviate ur issue...because soon hal is going bye bye and everyone will need to migrate to udev....which suxs because half of my packages still have hal as a depends to run....meaning they haven't recoded for udev.... like my thunar volume manager doesn't work well without hal....but i believe u cannot run hal and udev on the same system or u might have issues where hal and udev are both running and trying to do the same thing...

http://www.gentoo.org/proj/en/desktop/x/x11/xorg-server-1.8-upgrade-guide.xml

it specifically states...
Quote:

Xorg can detect input devices using udev, deprecating its HAL support. Users are strongly encouraged to migrate to udev.
Enabling udev just requires building xorg-server with USE="udev
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Mon Sep 13, 2010 4:36 am    Post subject: Reply with quote

HAL and udev can both be on the same system, but probably you want the programs using one or the other (preferably udev if hal is going the way of the dinosaurs)
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon Sep 13, 2010 11:53 am    Post subject: Reply with quote

thanks for your replies!

BradN,
when I encounter the problem, it persists too if I switch to the console via ctr-alt-F[1-5].
EDIT: also if I stop X from console and stay in console: same effect.

adra,
as Brad said, hal and udev can reside on the same system. until yesterday my xorg-server even was running with hal and udev USE-flag at the same time (then I remerged it with -hal).

BTW, during the first minutes of my X session the light is working normal.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Sep 14, 2010 1:55 am    Post subject: Reply with quote

Ok, then it seems this is somehow related to the kernel, but it would be good to remove xdm from startup, shut down, disconnect and reconnect keyboard, then boot up only to the text prompt and see if the keyboard still does it (this way we know X had no chance to configure something on it, or even to change a configuration in the input layer of the kernel).

If the problem still persists, you have the option of tracking down what kernel version initially exhibits the problem (there is a procedure called a bisection test where you must download and compile and test 10 or so kernels to narrow down exactly what change introduced the problem). It's a pain to wait for it all to compile but it enables you to make a much better bug report to the developers, and you will have a better chance of the problem being fixed.

A workaround might be turning off the full usb HID input driver and using the boot protocol usb input driver (this may not be an option if you use joysticks or other unusual usb input devices) - this interfaces with keyboards/mice in a simpler transmission mode that might not exhibit the same issue.

Or the "money is no obstacle" solution, just buy a different keyboard and use this one on another system :)
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Tue Sep 14, 2010 2:09 am    Post subject: Reply with quote

As a related test, since you see the problem with a USB keyboard, try using a PS/2 keyboard instead. This should tell us whether the problem is related to USB or to something playing with keyboard settings.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1931

PostPosted: Tue Sep 14, 2010 2:21 am    Post subject: Reply with quote

Hmm... If you have it, try increasing the value of /sys/module/usbcore/parameters/autosuspend and see if it does anything.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Sep 14, 2010 3:11 am    Post subject: Reply with quote

Hu wrote:
As a related test, since you see the problem with a USB keyboard, try using a PS/2 keyboard instead. This should tell us whether the problem is related to USB or to something playing with keyboard settings.


This problem is related to the keyboard's backlight and probably he doesn't have a PS/2 version of the same. The keyboard works fine, but its backlight is turning off when it's wanted to stay on. If the keyboard came with a USB->PS/2 adapter, it's worth a shot trying that.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Mon Sep 20, 2010 3:30 pm    Post subject: Reply with quote

thanks a lot for your help and apologies for me not answering for so long (have been away from my computer for a week).

the situation is in a way both trickier and easier now: the keyboard works again as expected without me having changed anything. all that has changed since last week is that x-server and -drivers have been updated to 1.9.0.

if the problem occurs again, I will have a closer look on the possible trigger and try your advices.

thanks again!
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Wed Sep 22, 2010 8:06 am    Post subject: Reply with quote

and here we go:
happened again, and now at least the trigger is somehow tracked down. the keyboard showed the weird backlighting behaviour again after I plugged in an USB HDD. and now I remember: like it was the last time. logging out/in or switching to console didn't help. then, I did like Brad suggested and removed xdm from default runlevel, shutdown, switched off, un-/replugged keyboard, switched on and restarted into the console: still, keyboard switched off its backlight 2 seconds after the last keystroke, already during the boot process. didn't change when I started xdm again.
BUT, and here it seems like X (or KDE) has a rather positive influence on the whole thing: at a certain point of the KDE starting process (after logging in in kdm and quite at the end, when the splash screen disappears and the desktop shows up) the backlight smoothly came back without having touched any key! but unfortunately, after some time, between 10 seconds and several minutes, in most cases it falls back to the weird behaviour and switches the light off.

it obviously is a kernel related issue - I am running 2.6.34-gentoo-r6 now that I'm having the problems. as a test I just booted into the last kernel that is still installed on my system (2.6.34-gentoo-r1). and: with that version the backlight stayed on all the time, also during boot or anytime within the console. so there must have been some changes in the USB system between 2.6.34-r1 and -r6.

about bisection tests: the problem is that no kernel versions between -r1 and -r6 are in the portage tree, according to eix. and BradN, do you think kernel maintainers will bother to dig into this even if it is about a piece of hardware the manufacturer officially offers only Windoze support for? (BTW: shame on Logitech to build such an almost perfect keyboard and ignoring compatibility issues.)

best,
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Wed Sep 22, 2010 8:14 am    Post subject: Reply with quote

This is definitely a 2.6.34-r6 bug. Many USB HID devices get into trouble with this version in various ways.
https://forums.gentoo.org/viewtopic-t-844438-start-0-postdays-0-postorder-asc-highlight-.html
(follow the link in the last post for the explanation)

You should go with at least 2.6.34-r7 and considering miscellaneous security patches commited since, 2.6.34-r10 is a better choice.
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Wed Sep 22, 2010 7:24 pm    Post subject: Reply with quote

Unfortunately you need access to a git tree to do the bisection test, which probably means you have to duplicate the problem in the vanilla kernels (there's a git server for vanilla kernel.org).

It actually traces the problem not just to a certain release, but to the actual commit (single change or set of changes) that causes it.

Kernel maintainers care about anything that makes hardware misbehave, especially if it was already working in a past version, even if the manufacturer doesn't support it.
Back to top
View user's profile Send private message
freifunk_connewitz
Apprentice
Apprentice


Joined: 08 Feb 2006
Posts: 231

PostPosted: Fri Sep 24, 2010 8:36 am    Post subject: Reply with quote

aCOSwt,
you are right - installed kernel 2.6.34-r10 and the problem disappeared. thanks to all for your hints. setting it to finally solved now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum