Discussion:
Read voltage Rtc Cmos for Ubuntu/Debian
(too old to reply)
ElChe
2011-11-02 17:45:42 UTC
Permalink
Hi all


It possible, read, with some program utilities, the battery voltage RTC
CMOS?


Thanks

Regards
Kenny McCormack
2011-11-02 21:29:02 UTC
Permalink
Post by ElChe
Hi all
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
Is possible, post, with help some dictionary or friend, English?
--
Religion is regarded by the common people as true,
by the wise as foolish,
and by the rulers as useful.

(Seneca the Younger, 65 AD)
Loki Harfagr
2011-11-03 13:07:32 UTC
Permalink
Post by ElChe
Hi all
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
si.
ElChe
2011-11-03 15:31:54 UTC
Permalink
Post by ElChe
Hi all
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
si.
how?

Thanks


Regards
Loki Harfagr
2011-11-04 09:48:24 UTC
Permalink
Post by ElChe
Hi all
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
si.
how?
you'll have to check your hardware documentation and hope there is a
detailed data sheet included, then you'll have to use a bit of code
writing to access the relevant zone/address and read the data you
want (take care it might be put in big endian or small, check the data-sheet)

or, if you're [very] lucky, some part of your kernel/modules already acesss
what you're loooking for, cross your fingers and try some Q&D find:

find /sys/ -iname '*clock*' -o -iname '*therm*' -o -iname '*rtc*'

if this catches anything that would be related to the parts you
want to audit then you're almost done :-)
Buona fortuna (e niente panico!-)
ElChe
2011-11-03 15:31:21 UTC
Permalink
Hi all

Is possible, read with some program utilities, the battery voltage RTC
CMOS?

Thanks

Regards
Tim Watts
2011-11-03 16:21:18 UTC
Permalink
Post by ElChe
Hi all
Is possible, read with some program utilities, the battery voltage RTC
CMOS?
Thanks
Regards
If you mean the RTC chip's own little battery (rather than the laptop main
battery) - I do not think so in the general case.

/sys/class/rtc/rtc0/

Is the place to look for everything the linux RTC driver knows about. On my
system, local RTC battery voltage is not one of them.

This does not mean it is impossible - but you would need to start with the
chip in your system, find the datasheet, them find out if reading the
battery voltage is even possible.

Then you would have to do some "bit banging" - ie talk to the chip at a low
level to get the data.

In theory, if you find out how, you could them modify the RTC driver to
include the information in /sys/...

It's probably not standard either - I don't know how many different RTC
chips exist and they are probably all different for this function.

Cheers

Tim
--
Tim Watts
ElChe
2011-11-03 16:36:07 UTC
Permalink
Post by Tim Watts
Post by ElChe
Is possible, read with some program utilities, the battery voltage RTC
CMOS?
Thanks
Regards
If you mean the RTC chip's own little battery (rather than the laptop main
battery) - I do not think so in the general case.
/sys/class/rtc/rtc0/
Is the place to look for everything the linux RTC driver knows about. On my
system, local RTC battery voltage is not one of them.
for battery rtc cmos , intend battery lithium cr20232 for laptop.


Regards
Tim Watts
2011-11-03 20:24:29 UTC
Permalink
Post by ElChe
Post by Tim Watts
Post by ElChe
Is possible, read with some program utilities, the battery voltage RTC
CMOS?
Thanks
Regards
If you mean the RTC chip's own little battery (rather than the laptop
main battery) - I do not think so in the general case.
/sys/class/rtc/rtc0/
Is the place to look for everything the linux RTC driver knows about. On my
system, local RTC battery voltage is not one of them.
for battery rtc cmos , intend battery lithium cr20232 for laptop.
Ok

So how much do you want to read the battery voltage?

Do you want it enough, to develop some code (or pay someone to write code)?

Do you only care about one type of hardware?

It *might* be possible to write code - but you will need to read the RTC
data sheet.

But, first - have a look in the /sys/ tree and see if you might be lucky...
--
Tim Watts
Tim Watts
2011-11-03 16:24:44 UTC
Permalink
Post by ElChe
Hi all
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
Thanks
Regards
Dudes - this guy is obviously not English (or Welsh, American etc) - it's
not that hard to see what he wants.

If any of you can speak another language better than his english, then fine
- otherwise, try the old protocols adage:

Be precise in what you send, and tolerant in what you receive :)
--
Tim Watts
Pascal Hambourg
2011-11-04 12:08:51 UTC
Permalink
Hello,
Post by ElChe
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
If the system board has a sensor which monitors the CMOS/RTC battery
voltage (check in the BIOS setup), it should be possible to read it with
usual voltage/temperature/fan speed monitoring tools such as sensors
from the lm-sensors package.
ElChe
2011-11-04 15:23:05 UTC
Permalink
Post by Pascal Hambourg
Hello,
Post by ElChe
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
If the system board has a sensor which monitors the CMOS/RTC battery
voltage (check in the BIOS setup), it should be possible to read it with
usual voltage/temperature/fan speed monitoring tools such as sensors
from the lm-sensors package.
I have installed lm-sensors, sensors-detect, but not found chip for read
temperatures
cpu and other parameters.

My hardware is laptop HP compaq nc6000. Hp use particular chip for this
work!?!

Thanks

Regards
Loki Harfagr
2011-11-04 19:33:33 UTC
Permalink
Post by ElChe
Post by Pascal Hambourg
Hello,
Post by ElChe
It possible, read, with some program utilities, the battery voltage RTC
CMOS?
If the system board has a sensor which monitors the CMOS/RTC battery
voltage (check in the BIOS setup), it should be possible to read it with
usual voltage/temperature/fan speed monitoring tools such as sensors
from the lm-sensors package.
I have installed lm-sensors, sensors-detect, but not found chip for read
temperatures
cpu and other parameters.
My hardware is laptop HP compaq nc6000.
do you mean that kind of nc6000?
http://www.colitti.com/lorenzo/software/nc6000/
[if so you'll find (at least partial) answers on this page]
Post by ElChe
Hp use particular chip for this
work!?!
well, HP used to use every simple way to publish fast a new
model every twelve minutes, it somtimes implied that some
shortcuts were boldly taken, now if you compare to Sony's
usage they were widely less erratic and user hostile (probably
a good reason why they quit the end-user stuff market)

Loading...