sony-vaio-z-series team mailing list archive
-
sony-vaio-z-series team
-
Mailing list archive
-
Message #02800
Re: /sys/devices/platform/sony-laptop/battery_care_limiter: cannot change value
On 27 September 2012 22:39, Joël Bourquard <joel.bourquard@xxxxxxxxx> wrote:
> I'm using kernel 3.5.3 on a VPCZ13AFJ and it works perfectly, no need for
> the custom module anymore ;-)
Well,
let's get into details now.
I am a Gentoo Linux user and I use gentoo-sources-3.5.4 which are
pretty similar to vanilla sources.
If I do echo "1" > /sys/devices/platform/sony-laptop/battery_care_limiter
nothing happens, and that file still contain 50.
OK, let's start the module sony-laptop in debug mode:
(by the way, these are the options I use for such module:
options sony_laptop debug=0 kbd_backlight=1 kbd_backlight_timeout=0 )
Now if I set debug = 1 and try to change such battery_care_limiter file content:
Sep 27 23:03:14 Z21X9E kernel: [ 6521.082693] sony_laptop: found
handle 0x013f (offset: 0x05)
Sep 27 23:03:14 Z21X9E kernel: [ 6521.084702] sony_laptop:
__call_snc_method: [SN07:0x0000000000210105]
Sep 27 23:03:14 Z21X9E kernel: [ 6521.084711] sony_laptop: called SN07
with 0x210105 (result: 0x210105)
I think there's nothing relevant. Isn't it?
If I try to edit the
/sys/devices/platform/sony-laptop/battery_care_limiter using vim, I
get the following error during saving:
"/sys/devices/platform/sony-laptop/battery_care_limiter" E667: Fsync failed
WARNING: The file has been changed since reading it!!!
Do you really want to write to it (y/n)?y
"/sys/devices/platform/sony-laptop/battery_care_limiter" E667: Fsync failed
So, no modification is possible. There's some lock to that file! I'm
not able to understand what is locking that file in such way so far.
Furthermore, I don't understand why the default is 50.
Cheers,
--
Flavio
Follow ups
References