lkml.org 
[lkml]   [2014]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 001/001] hid-sony.c: add sysfs provisioning
Hi Brian,

On 11/17/2014 19:00, bri wrote:
>
>> Yeah, the device ID in the driver is only for tracking devices internally
>> and setting sane default LED values. It has no meaning outside of the
>> module. Like Antonio said, if you want the system number for a controller
>> you are better off just getting it from the joystick device.
> Would you be amenable to a patch that removes the IDA entirely and just sets
> the LEDs to all solid-on? Since the LEDs are available through sysfs,
> udev rule could probably be made to set the LEDs in the absence of bluez
> or a higher level controller manager, and then it becomes the distro's
> responsibility.
>

What would be the benefit of doing this? Nothing is stopping higher
level services from setting the LEDs right now. The driver just sets
sane defaults for systems that don't have anything else to set the
'real' values. Other controllers like Wiimotes and Xbox gamepads do the
same thing. It doesn't get in the way of services like BlueZ setting
them once initialization is complete.

Leaving it completely up to the distro just means that there will be
situations where there is nothing to set the default values which makes
for a bad user experience.


\
 
 \ /
  Last update: 2014-11-18 05:01    [W:0.277 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site