Re: Remembering brightness over reboot

Matt Foster <[email protected]> Fri, 1 Aug 2003 14:41:39 +0100
Newsgroups gmane.linux.hardware.sony
Message-ID <20030801134139.GA1073@zenith>
It seems to work on my R600MX (European R505: model PCG623M), although
Its not only offset 2f that changes. On my system 2d 2e and 2f are
altered.

I wrote this little ruby sript to look at those three bytes, the only
problem is that to change them you have to reboot to windows, change the
brightness, then boot back into linux, and run it. I'm afraid I'm going
on holiday, so I dont have time to do it all...

#! /usr/bin/ruby
f = File.new("/dev/nvram")
f.pos = 0x2c					# set the initial position in the file
puts "brightness:\t" + `spicctrl -B`
d = f.getc						# read one byte, and increment the pos.
e = f.getc						#	"
f = f.getc						#	"
printf "value:\t\t2d:0x%x, 2e:0x%x 2f:0x%x\n", d, e, f

Have fun,

Matt

Quoting S. Anderson ([email protected]):
> On Fri, Aug 01, 2003 at 05:07:12AM -0400, Matthew Miller wrote:
> > On Fri, Aug 01, 2003 at 01:58:23AM -0600, S. Anderson wrote:
> > > It seems you can make your bios remember your brighness over
> > > a reboot with linux. By increasing or decreasing the value at
> > > offset 2f of /dev/nvram.
> > 
> > On which systems?
> > 
> 
> I have only tried it on my vaio R505GL laptop. I found it out by
> rebooting to windows to set the brightness. And then going back to
> linux to capture /dev/nvram, and comparing the differences.
> 
> I dont really go into windows too often, and it was pissing me off
> having to run spiccctrl -b 255 everytime I rebooted linux. :-)
> 
> I guess different laptops would store this info into different parts of
> the nvram.
> 
> If anyone has more info on this sort of thing I would be interested :-)
> 
> cya,
> sa
> _______________________________________________
> Linux-sony mailing list: [email protected]
> Subscribe/Unsubscribe: http://returntonature.com/mailman/listinfo/linux-sony
> Linux-Sony Documentation: http://returntonature.com/linux/phpwiki
> 
-- 
Matt Foster

[email protected]
[email protected]
http://www.mattfoster.clara.co.uk 
icq: 106411042