Logitech mouse specifics handling

Bastien Nocera hadess at hadess.net
Thu May 31 15:27:30 PDT 2007


On Thu, 2007-05-31 at 20:15 +0200, Nicolas Trangez wrote:
> Hija,
> 
> as one of the SoC'07 students of the GNOME project, I'll be working on
> HID device handling in our desktop environment. One part of this is
> related to the X server (on-line addition of devices to the server),
> another inside the desktop, but obviously HAL will have an important
> role too.
> 
> One thing I'd like to handle is Logitech-specific mouse functions.
> Currently some other projects already provide these features (eg
> resolution setting), both Lomoco[1] and KDE[2].
> Adding this feature in the GNOME desktop too would imply more
> code/functionality duplication, including device/capability maps etc.
> 
> So, I'd propose to add this functionality inside HAL (somewhat like the
> screen brightness functionality, etc).
> The way I see this:
> - Add a new device capability, input.mouse.logitech
> - On devices with this capability, add these properties and methods:
> 	* int BatteryLevel
> 	* int[] SupportedResolutions
> 	* int Resolution
> 	* bool DualChannelSupported
> 	* int Channel
> 	* setResolution(int)
> 	* setChannel(int)

The battery is already supported, see hald-addon-usb-csr.

I don't think the rest has any place in HAL itself, and should be
implemented in an X.org or kernel driver.

As for lomoco, it's pretty much the same sources as lmctl which the HAL
code is based on. Beers for you if you manage to get battery status info
out of my MX5000 mouse and keyboard.

Cheers

-- 
Bastien Nocera <hadess at hadess.net> 



More information about the hal mailing list