public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Steve Underwood <steveu@coppice.org>
To: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Better battery info/status files
Date: Mon, 05 Feb 2001 00:19:34 +0800	[thread overview]
Message-ID: <3A7D8116.CA16340B@coppice.org> (raw)
In-Reply-To: <Pine.SOL.4.21.0102041540300.14562-100000@green.csi.cam.ac.uk>

James Sutherland wrote:
> 
> On Sun, 4 Feb 2001, Ben Ford wrote:
> 
> > David Woodhouse wrote:
> >
> > > On Sun, 4 Feb 2001, James Sutherland wrote:
> > >
> > > > For the end-user, the ability to see readings in other units would be
> > > > useful - how many people on this list work in litres/metres/kilometres,
> > > > and how many in gallons/feet/miles? Probably enough in both groups that
> > > > neither could count as universal...
> > >
> > > Yeah. We can have this as part of the locale settings, changable by
> > > echoing the desired locale string to /proc/sys/kernel/lc_all.
> > >
> > > -
> >
> > Just an idea, . .  but isn't this something better done in userland?
> >
> > (ben@Deacon)-(06:49am Sun Feb  4)-(ben)
> > $ date  +%s
> > 981298161
> > (ben@Deacon)-(06:49am Sun Feb  4)-(ben)
> > $ date  +%c
> > Sun Feb  4 06:49:24 2001
> 
> That's what I'd do, anyway - /dev/pieceofstring would return the length of
> said piece of string in some units, explicityly stated. (e.g. "5m" or
> "15ft").
> 
> "uname -s" ("how long's a piece of string on this system") would then
> convert the length into feet, metres or fathoms, depending on what the
> user prefers.
> 
> James.

Don't get carried away. In the present context we are only talking about
time and electrical measurements. Whilst most of the human race can't
read the English labels in /proc, they all use the same measurements for
electrical units and time (unless the time exceeds 24 hours, where dates
get a bit screwed up). In this case even the US in in line with the rest
of humanity............. or would you like to be able to express battery
capacity in BTUs?

Regards,
Steve
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

  parent reply	other threads:[~2001-02-04 16:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-02 14:53 Better battery info/status files Pavel Machek
2001-02-03 23:22 ` Albert D. Cahalan
2001-02-03 23:31   ` Russell King
2001-02-04 11:53     ` James Sutherland
2001-02-04 13:14       ` Steve Underwood
2001-02-04 13:58       ` David Woodhouse
2001-02-04 14:51         ` Ben Ford
2001-02-04 15:42           ` James Sutherland
2001-02-04 16:16             ` David Woodhouse
2001-02-04 23:15               ` Ben Ford
2001-02-04 16:19             ` Steve Underwood [this message]
2001-02-04 16:46               ` James Sutherland
2001-02-04 16:49           ` Alan Cox
2001-02-06 15:40   ` Pavel Machek
2001-02-06 15:42   ` Pavel Machek
2001-02-04  0:03 ` Jonathan Morton
2001-02-04  0:40   ` Albert D. Cahalan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A7D8116.CA16340B@coppice.org \
    --to=steveu@coppice.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox