l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2003 Oct 09 10:37

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] data-acquisiton question AND xmodmap question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] data-acquisiton question AND xmodmap question



On Thu, 9 Oct 2003, Bryan Richter wrote:

> First, I have been wanting to make my escape key toggle between keymaps.
> I have bound ctrl to escape (handy for Vim), so escape is sitting unused
> atm. Since I am not the only person who uses my keyboard, but I *am* the
> only person who uses Dvorak, I would like a quick way of switching back
> and forth. All the info I've found concerning keymappings focuse mainly
> on fixing the insert/delete key business, and nothing mentions binding
> program execution (like 'setxkbmap us') to a keypress.

that might be a window manager feature.  look in your window manager
options, whichever window manager you happen to use.

> The second thing is an old UPS I've inherited that has no way of
> communicating with my computer. It just beeps, which wouldn't be helpful
> when I'm at school. It beeps continuously when reserves are dangerously
> low, and I figured that if I could connect something to the speaker
> circuit, I might be able to use the signal. I'm completely clueless
> here, though, so I'm not asking for any definite answers- I'm just
> wondering if it is possible to use the beep, e.g. wire the speaker to a
> port, and scan for the AC signal that would indicate imminent power
> failure. For all I know, that would fry circuits, but is there
> *something* I could do?

yes.  the parallel port comes to mind.  the serial port should also be
useable.

if i were pursuing this, i'd probably do something like:

   1. tie speaker- to parallel port ground.
   2. tie speaker+ to one of the parallel port inputs via
      some circuit protection circuit...
   3. read the parallel port state from the software...
      i guess ioctl.

note: don't damage anything... obviously.

-Mark

-- 
Mark K. Kim
http://www.cbreak.org/
PGP key available on the website
PGP key fingerprint: 7324 BACA 53AD E504 A76E  5167 6822 94F0 F298 5DCE

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.