Re: PS3 controller (SIXAXIS) never gets into "IdleTimeout"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 19 Jan 2016 19:57:46 +0100
Manuel Reimer <manuel.reimer@xxxxxxxxxxx> wrote:

> Hello,
>

Hi Manuel,

> I want to use my PS3 controller on my Linux system. This, so far, seems 
> to work pretty well, but if I forget to turn off the controller when 
> leaving my PC, then the battery keeps discharging until it is finally empty.
> 
> There is a setting "IdleTimeout" in "input.conf", but at least for me 
> this doesn't work for the PS3 controller.
> 
> I think the reason is, that the controller keeps sending information 
> even if it is placed on my desk and noone is touching it. If I run 
> "evtest" on the event device, created for the controller, then I get 
> something like this (only short snippet):
> 
> Event: time 1453228629.616457, -------------- SYN_REPORT ------------
> Event: time 1453228629.651514, type 3 (EV_ABS), code 1 (ABS_Y), value 124
> Event: time 1453228629.651514, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), 
> value 491
> Event: time 1453228629.651514, -------------- SYN_REPORT ------------
> Event: time 1453228629.683436, type 3 (EV_ABS), code 1 (ABS_Y), value 123
> Event: time 1453228629.683436, type 3 (EV_ABS), code 2 (ABS_Z), value 132
> Event: time 1453228629.683436, type 3 (EV_ABS), code 61 (ABS_MT_TOOL_Y), 
> value 490
> Event: time 1453228629.683436, -------------- SYN_REPORT ------------
>
> Seems like the controller keeps sending axis information even if the 
> axis aren't touched at all.
>

IIRC this is because the controller has a lot of axes and they end up in
the multi touch range (ABS_MT_*) which apparently sends event
continuously.

I remember I did some experiments about remapping the axes to a more
meaningful setup and there were some improvements but that work
depended on some experimental changes to the linux input layer from
David Herrmann (the ABS2 proposal) and I do not know if the latter ever
reached mainline. This is a linux-input topic BTW.

> Is there any chance to add some handling into bluez to get the 
> controller disabled, even if it keeps sending information in "idle state"?
>

If you disconnect the device from bluez (either from an applet or from
command line) the sixaxis should turn off.

JFYI a possible hardware way is to keep pushed the PS button for some
seconds, this also should turn the sixaxis off.

Ciao ciao,
   Antonio

-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux