kmilo-legacy needed to display brightness changes, zoom, etc, on Thinkpad T41p

Bug #76091 reported by Andreas Ntaflos
22
Affects Status Importance Assigned to Milestone
kdeutils (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: kdeutils

First: the volume keys (volume up, volume down, mute) work fine.

Using a Thinkpad T41p with Kubuntu 6.10 I had to install kmilo-legacy and enable it in the KDE control centre. That apparently was the only way to get on-screen display messages for brightness changes, Thinklight toggles or Fn-Spacebar (zoom, configure for ksnapshot). Prior to that I made sure the nvram module was loaded, that udev assigns it the correct group and permissions and that my user was part of the nvram group:

crw-rw---- 1 root nvram 10, 144 2006-12-17 06:26 /dev/nvram

This bug has probably been reported already (a forum post on ubuntuforums.org indicates that) but I couldn't find it, I'm afraid.

This starts another problem: the generic kmilo plugin apparently interferes with kmilo-legacy when changing volume; the volume bar jumps around quite a bit, e.g. from 100% to 73% to 86%, and so on in that fashion. This problem is related or similar to bug #61822 and bug #51537 (most Thinkpads have hardware sound mixing and do not need any software mixer to change volume or mute) and a very unfortunate situation.

Andreas Ntaflos (daff)
description: updated
Revision history for this message
Michael Binder (firehawk-deactivatedaccount) wrote :

Same here with a ThinkPad R40 and Kubuntu 6.10.

I got it partly working by installing kmilo-thinkpad, loading nvram module and changing the rights of /dev/nvram:

sudo addgroup nvram
sudo adduser username nvram
sudo chown :nvram /dev/nvram
appending "nvram" to /etc/modules

This states also the problem described above. The volume bar jumps around quite a bit.

See also similar bug #31778 which is marked "fix released".

Revision history for this message
Michael Binder (firehawk-deactivatedaccount) wrote :

Sorry, I misspelled the packagename. I installed kmilo-legacy not kmilo-thinkpad.

Revision history for this message
Adrian Frith (adrian-frith) wrote :

As to the problem of the generic kmilo plugin interfering with kmilo-legacy, there is a workaround which I posted in bug #61822: just delete the file /usr/share/services/kmilo/kmilo_generic.desktop (or move it somewhere else, whatever).

Revision history for this message
Andreas Ntaflos (daff) wrote :

Thanks for the hint Adrian!

To make this work fully I had to execute "kcmshell thinkpad", activate "Run Thinkpad Buttons KMilo plugin" and deactivate "Change volume in software". Then I had to go to System Settings, Advanced, Service Manager, select "KMilo", stop the service, then restart it.

After that when changing volume, brightness or toggling the ThinkLight the proper OSD should appear.

Revision history for this message
Thorsten Werner (seeadler) wrote :

Same problem is with Kubuntu 7.04 (feisty fawn) on a X60s.
As is mentioned in the package description, I should file a bug, as done now.

Revision history for this message
Michael Binder (firehawk-deactivatedaccount) wrote :

Same here with a ThinkPad R40 and Kubuntu 7.04.

The installation of kmilo-legacy doesn't solve the problem completely. I also had to do the steps posted in the above workaround.
But the workaround I posted before works only partially.

The group of /dev/nvram changes on every reboot back to the kmem group. And I think it would be a bad idea to add the user to the kmem group. This will maybe lead to a security hole. The kmem group is also set on /dev/mem /dev/kmem and /dev/port.

Please fix this bug. It is annoying to figure out what is wrong this time. It worked perfectly with dapper drake.

Revision history for this message
Dimitris Kogias (dimitris-k) wrote :

The combined workaround (nvram permissions, installing kmilo-legacy, disabling kmilo_generic.desktop) works here (X60 1709-CTO).

However, it also results in the loss of Fn-F4 suspend functionality. This is on 7.04. Suspend on lid close and from the logout action still works.

BTW you can make the nvram permission change "permanent" by editing the nvram line in /etc/udev/rules.d/40-permissions.rules. I've changed mine to 0640, group nvram.

Revision history for this message
Rafal Kwasny (mag) wrote :

Other solution is to add your user to group kmem
After all this also works nice on T42

BTW
I wonder if someone reads bugs like this, there should be button "Hey we found a solution! just add this to distro"

Revision history for this message
Martin (martin-zdila) wrote :

i report the same for thinkpat Z60m
after applying your advices i got the same results as dimitris :-/

Revision history for this message
Martin (martin-zdila) wrote :

one more think i've found out -- Fn+F3 has also stopped working. Before it had been showing battery status in KDE.

Revision history for this message
Benjamin Kay (benkay) wrote :

Rather than moving /usr/share/services/kmilo/kmilo_generic.desktop to disable the normal kmilo, run "kcmshell kcmkded" and in the bottom pane un-check kmilo. Also, you may need to add nvram to /etc/modules in addition to changing the udev rules for it.

Revision history for this message
Rich Johnson (nixternal) wrote :

Confirming due to responses. I am assuming this is still an issue with Hardy as well?

Changed in kdeutils:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Dimitris Kogias (dimitris-k) wrote :

 Very much still here with up-to-date Hardy. To recap, in order to get the sound and brightness buttons to behave appropriately I have:

- Installed kmilo-legacy
- Moved kmilo_generic.desktop to kmilo_generic.desktop.disabled
- Unchecked "Set Volume in software" in "kcmshell thinkpad" (X60 has hardware mixer)
- Bounced the KMilo service

Revision history for this message
tictactatic (tictactatic) wrote :

I tried doing the above in KDE 4.1 rc1 (on my T42), because volume and mute keys were not working. No luck. Other buttons seem to work. Anybody tried their luck with 4.1?

Revision history for this message
tictactatic (tictactatic) wrote :

An update to the above: fn+f5 as well as brightness and thinklight buttons work, the rest doesn't.

Revision history for this message
Benjamin Kay (benkay) wrote :

I'm testing Kubuntu 8.10 (Intrepid Ibex) Beta, and my volume, brightness, and thinklight keys work fine. My media keys also work, except for the bug #285056. My Fn+F5 key for wireless/bluetooth control also works, except for bug #212839. kmilo isn't even in the Intrepid repositories, so I wouldn't expect it to be a problem. Can we mark this as fixed in Intrepid?

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

I'd say we could. ;-)

Changed in kdeutils:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.