Here's what worked on my HP-2140us:
- Install the "Infrared Remote Control" app from the software center
- If you haven't installed lirc before, you'll get a config screen; if the install completes without one, open a terminal and type
sudo dpkg-reconfigure lirc
- Select ENE KB3926 as your receiver and None as your transmitter.
- Open Preferences > Infrafed Remote Control, unlock and set the "IR Remote Control" settings to Manufacturer: HP, Model:TSGH-IR01
- Press a few buttons on the remote and make sure they come up in the "Configuration Test" area. If they do, you're done!
Finally, if you plan to use the remote with rhythmbox/totem/banshee/etc., you'll need to enable the lirc/remote control plugins in those apps.
update: you might need to restart after step 3
update 2 For Rhythmbox support add this in ~/.lircrc:
begin
prog = Rhythmbox
button = PlayPause
config = playpause
end
begin
prog = Rhythmbox
button = Skip
config = next
end
begin
prog = Rhythmbox
button = Replay
config = previous
end
begin
prog = Rhythmbox
button = VolUp
config = volume_up
end
begin
prog = Rhythmbox
button = VolDown
config = volume_down
end