George Michaelson | 2 Feb 19:44 2007
Picon

bind script to X->VT switch


I have an IBM X31 which can't do ACPI sleep while in X11. it sleeps
fine, but it dies on wake.

If I do the acpi sleep from a VT console, its fine.

But to get to VT, I have to hit keys. FN+<x> or CTRL+<x> sequences.

I'd love to have a script, which does the moral equivalent of:

	#!/bin/sh
	
	run-command-to-switch-to-VT-console
		:
		: (safe net shutdown for sleep)

	sysctl -w machdep.sleepstate = 3

	# wakeup, script re-runs

		:
		: (re-establish net state)

	run-command-to-switch-to-X11

this could run from mouse, functionkey, whatever.

what are that pair of commands? Do they exist?

cheers
(Continue reading)

Joerg Sonnenberger | 2 Feb 19:55 2007
Picon

Re: bind script to X->VT switch

On Fri, Feb 02, 2007 at 01:44:32PM -0500, George Michaelson wrote:
> I'd love to have a script, which does the moral equivalent of:

Attached is my powerd script. It should illustrate the point.

Joerg
#!/bin/sh -
#
#	$NetBSD: lid_switch,v 1.4 2006/09/27 01:41:45 jnemeth Exp $
#
# Generic script for lid switch events.  We try to put the system to sleep.
#
# Arguments passed by powerd(8):
#
#	device event

case "${2}" in
pressed)
	curtty=`/usr/sbin/wsconscfg -g`
	/usr/sbin/wsconscfg -s 1
	sleep 1
	/sbin/sysctl -w machdep.sleep_state=3
	/usr/sbin/wsconscfg -s $curtty
	/sbin/ifconfig iwi0 | grep inet > /dev/null && /sbin/ifconfig iwi0 up
	exit 0
	;;
released)
	;;
(Continue reading)

George Michaelson | 2 Feb 21:26 2007
Picon

Re: bind script to X->VT switch

On Fri, 2 Feb 2007 19:55:34 +0100
Joerg Sonnenberger <joerg <at> britannica.bec.de> wrote:

> 	curtty=`/usr/sbin/wsconscfg -g`
>	/usr/sbin/wsconscfg -s 1

and

>	/usr/sbin/wsconscfg -s $curtty

are the triplet I needed. The rest, I do slightly different because of
using a different model of mobile-site relocation. I am tempted to wire
it to lid-close, I only recently got radeontool to shut down my
backlight which this really required.

Many many thanks for such a beautifully clear and simple explanation!

-G

Blair Sadewitz | 9 Feb 20:14 2007
Picon

new wscons pointing device driver for [modular] Xorg in wip/openbsd-input-ws

Hello,

Matthieu Herrb was kind enough to make a tarball of this driver
available so that
I could package it.  It was originally written to support the zaurus,
but works fine for
me on amd64 with a Microsoft seven-button optical mouse.  The driver
is only packaged
for modular Xorg right now, but anyone could build it and copy it to
their X installation to test it.

If there are no major problems with it, it would be nice to have it in
the pkgsrc tree so that the
distfile can be mirrored and he doesn't have to keep it on
xenocara.org forever.
Does anyone have a digitizing tablet?  I could package that driver next ...

Regards,

--Blair

--
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>

"The frivolity and boredom which unsettle the established order, the
vague foreboding of something unknown, these are the heralds of
approaching change.  The gradual crumbling that left unaltered the the
face of the whole is cut short by a sunburst which, in one flash,
illuminates the features of the new world."  --G.W.F. Hegel,
(Continue reading)

Jeremy C. Reed | 9 Feb 21:12 2007
Picon

Re: new wscons pointing device driver for [modular] Xorg in wip/openbsd-input-ws

On Fri, 9 Feb 2007, Blair Sadewitz wrote:

> If there are no major problems with it, it would be nice to have it in
> the pkgsrc tree so that the
> distfile can be mirrored and he doesn't have to keep it on
> xenocara.org forever.

I don't understand. Why isn't it in Xorg itself and tar ball available 
from Xorg mirrors?

  Jeremy C. Reed

Jukka Salmi | 18 Feb 15:59 2007
Picon

how to use 2nd head on Matrox G400?

Hi,

on a NetBSD/i386 -current system running XFree86 4.5.0 I'd like to use
the second head on a Matrox G400 card to get a dual head setup.
According to mga(4) I need a HAL module to achieve this. I found such
a module for XFree86 4.3.0 on the vendors site. Is this supposed to
work with XFree86 4.5.0? If yes, how should I load the module?

TIA, Jukka

--

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Jochen Kunz | 18 Feb 19:13 2007
Picon

Re: how to use 2nd head on Matrox G400?

On Sun, 18 Feb 2007 15:59:29 +0100
Jukka Salmi <j+nbsd <at> 2007.salmi.ch> wrote:

> on a NetBSD/i386 -current system running XFree86 4.5.0 I'd like to use
> the second head on a Matrox G400 card to get a dual head setup.
> According to mga(4) I need a HAL module to achieve this.
I used a G450 in dual head mode with the X11 supplied with NetBSD 3.0.
It didn't need the HAL, but it had several issues. The Xserver leeked
memory and required a restart every few days. Gama correction worked
only on the primary screen. The secondary screen could be driven in a
few fixed resolutions like 1024x768, 1280x1024, 1200x1600, while I
intended to use 1360x1024 on both screens. Finaly I gave up when I got a
"new" CRT that was capable of 1408x1056.

According to pcictl(8) my card is a:
001:00:0: Matrox MGA G400 AGP (VGA display, revision 0x85)
--

-- 

tschüß,
       Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/

Jukka Salmi | 18 Feb 20:47 2007
Picon

Re: how to use 2nd head on Matrox G400?

Jochen Kunz --> tech-x11 (2007-02-18 19:13:50 +0100):
> I used a G450 in dual head mode with the X11 supplied with NetBSD 3.0.
> It didn't need the HAL,

According to mga(4) the G450 and G550 don't need the HAL for dualhead
support. But the G400 does...

> but it had several issues. The Xserver leeked
> memory and required a restart every few days. Gama correction worked
> only on the primary screen. The secondary screen could be driven in a
> few fixed resolutions like 1024x768, 1280x1024, 1200x1600, while I
> intended to use 1360x1024 on both screens. Finaly I gave up when I got a
> "new" CRT that was capable of 1408x1056.

That's also a nice solution ;-)

Cheers, Jukka

--

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~

Blair Sadewitz | 23 Feb 18:54 2007
Picon

NetBSD DRI code updated in XFree86 HEAD

I noticed in their commit log that they've incorporated "NetBSD"
changes as of ~21st Feb. to their DRI code.

I do not have the hardware to test this, and I don't use XFree86.  Is
there anyone out there with an MGA/r128/etc card that wants to see if
this stuff even compiles? ;)

I'm not sure if their code could even help with porting of the
freedesktop.org DRI, but it would be cool if someone could test this.
AFAIK the newest snapshot has these changes.

Regards,

--Blair

--

-- 
Support WFMU-FM: free-form radio for the masses!
<http://www.wfmu.org/>

"The frivolity and boredom which unsettle the established order, the
vague foreboding of something unknown, these are the heralds of
approaching change.  The gradual crumbling that left unaltered the
face of the whole is cut short by a sunburst which, in one flash,
illuminates the features of the new world."  --G.W.F. Hegel,
_Phenomenology of Spirit_ 5:11


Gmane