apm disable

2001-10-06 Thread Philippe Monroux
Bonjour

demsg | grep apm me donne :
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)
apm: disabled on user request.

dans /boot/config-2.2.18pre21 (qui je suppose est le fichier de conf du kernel)

CONFIG_APM=y
CONFIG_APM_DISABLE_BY_DEFAULT=y

Faut-il que je recompile le noyau pour avoir APM ?
Ou y a-t-il une solution moins compliquée ?

-- 
G (roupe)
R (réunionnais) des
A (mis) de
L (linux)   http://www.linux974.com



Re: apm disable

2001-10-06 Thread Régis Grison

Philippe Monroux wrote:


Bonjour

demsg | grep apm me donne :
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)
apm: disabled on user request.

dans /boot/config-2.2.18pre21 (qui je suppose est le fichier de conf du kernel)

CONFIG_APM=y
CONFIG_APM_DISABLE_BY_DEFAULT=y

Faut-il que je recompile le noyau pour avoir APM ?
Ou y a-t-il une solution moins compliquée ?

Pour moi il faut recompiler. Le fichier de config du kernel est 
/usr/src/linux/.config et son format est exactement le même, il est donc 
possible de reprendre celui qui est dans boot (à mon avis, c'est  une 
copie de ce fichier pour faciliter la recompilation).


Donc rappel pour le cas où. Les sources doivent se trouver dans 
/usr/src/linux (je conseille de renommer le répertoire en 
kernel-2.2.18pre21 et de faire un lien vers linux). Tout dépend de la 
façon dont tu installes les sources mais si tu veux faire vite, je te 
conseille le download (sur kernel.org ou en .deb) de la même version, 
sinon la config va changer.


De toute façon, commence par :
# cp /boot/vmlinuz-2.2.18pre21 /boot/vmlinuz-2.2.18pre21-backup
# cd /usr/src

Ensuite, si tu as un .tgz (par exemple /root/linux-.2.2.18pre21.tgz), si 
tu as un .deb, tu dois pouvoir sauter cette étape :


# tar fxvz /root/linux-.2.2.18pre21.tgz
# mv linux kernel-2.2.18pre21
# ln -s kernel-2.2.18pre21 linux

Et puis dans tous les cas :

# cd linux
# make clean
# cp /boot/config-2.2.18pre21 .config

Editer le fichier .config pour changer

CONFIG_APM_DISABLE_BY_DEFAULT=y

en

CONFIG_APM_DISABLE_BY_DEFAULT=n

(avec emacs ou vi par exemple). Puis :

# make oldconfig
# make dep
# make bzImage
# cp arch/i386/boot/bzImage /boot/vmlinuz-2.2.18pre21

Et si tu utilises lilo (rien à faire de plus avec grub) :

# lilo

Voilà. Si tu as le moindre doute, demande avant de faire une bétise ;)

Régis.

PS : le ton de ta question m'a laissé supposer que tu n'avais jamais 
recompilé ton noyau. Désolé pour le ton didactique si je me suis 
trompé... Mais ça pourra peut-être servir à quelqu'un quand même..




Re: apm disable

2001-10-06 Thread Jacques L'helgoualc'h
Philippe Monroux a écrit, samedi 6 octobre 2001, à 16:03 :
 Bonjour

Bonjour.

 demsg | grep apm me donne :
 apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)
 apm: disabled on user request.
 
 dans /boot/config-2.2.18pre21 (qui je suppose est le fichier de conf du 
 kernel)
 
 CONFIG_APM=y
 CONFIG_APM_DISABLE_BY_DEFAULT=y
 
 Faut-il que je recompile le noyau pour avoir APM ?
 Ou y a-t-il une solution moins compliquée ?
 

à tout hasard, avant de recompiler, essaie toujours de rebouter le noyau
avec le paramètre :

linux apm=on

-- 
Jacques L'helgoualc'h



apm disable

2001-10-06 Thread Philippe Monroux
boot : linux apm=on

ça marche :

[EMAIL PROTECTED]:~$ dmesg | grep apm
apm: BIOS version 1.2 Flags 0x03 (Driver version 1.13)

je n'ai plus apm disable on user request

merci, ça m'évitera de recompiler.

Mais petite question: quand on a l'apm du kernel, vaut-il mieux
enlever l'apm du BIOS ?

-- 
G (roupe)
R (réunionnais) des
A (mis) de
L (linux)   http://www.linux974.com



Re: apm disable

2001-10-06 Thread Michel G .
Le Samedi  6 Octobre 2001 15:44, Jacques L'helgoualc'h a écrit :
 Philippe Monroux a écrit, samedi 6 octobre 2001, à 16:03 :
  CONFIG_APM=y
  CONFIG_APM_DISABLE_BY_DEFAULT=y
 
  Faut-il que je recompile le noyau pour avoir APM ?
  Ou y a-t-il une solution moins compliquée ?

 à tout hasard, avant de recompiler, essaie toujours de rebouter le noyau
 avec le paramètre :

 linux apm=on

Et pour rendre cette modification un peu plus permanente, n'oublie pas 
d'inclure ceci dans ton /etc/lilo.conf comme ceci :
append=apm=on

On relance lilo pour écrire dans le MBR:
# lilo

Normalement, c'est bon !
-- 
Michel G.



Re: APM: disable mouse interrupt?

2000-09-19 Thread Krzys Majewski
What!? And here I thought I was at the height of fashion with
my brand new PS/2 mouse. (The hell is a PS/2, anyway?).
Anyway, eventually I'll figure out how to dispense with the
mouse entirely and throw it happily out the window into the
lane. Lots of good things to be found in that lane. 
-chris

On Mon, 18 Sep 2000, Nate Amsden wrote:

 maybe time to switch to a USB or serial mouse :)
 
 or find a MB that supports that ...it may be worth emailing the company
 that makes the MB(provided its not a real old one) and askin them about
 that ..
 
 nate



Re: APM: disable mouse interrupt?

2000-09-18 Thread Krzys Majewski
Sadly, interrupt 12  is not listed in the  power management section of
the BIOS setup. It goes, perversely, something like this:

Interrupt 3 [Primary Secondary Disabled]
Interrupt 4 [Primary Secondary Disabled]
Interrupt 5 [Primary Secondary Disabled]
Interrupt 6 [Primary Secondary Disabled]
Interrupt 7 [Primary Secondary Disabled]
Interrupt 8 [Primary Secondary Disabled]
Interrupt 9 [Primary Secondary Disabled]
Interrupt 10 [Primary Secondary Disabled]
Interrupt 11 [Primary Secondary Disabled]
Interrupt 13 [Primary Secondary Disabled]
Interrupt 14 [Primary Secondary Disabled]
Interrupt 15 [Primary Secondary Disabled]

Bummer. -chris


  but no go. Then again, /proc/interrupts says:
  
  12: 130888  XT-PIC  PS/2 Mouse
  
  Note that 12 != 4. WTF? -chris
 
 you have a PS/2 mouse, and it's on interrupt 12. Try disabling
 that. /dev/mouse indicates that you're providing your mouse to X via
 gpm, so you'd have to check your gpm config to see what it thinks is
 your mouse (see /etc/gpm.conf).



Re: APM: disable mouse interrupt?

2000-09-18 Thread Nate Amsden
maybe time to switch to a USB or serial mouse :)

or find a MB that supports that ...it may be worth emailing the company
that makes the MB(provided its not a real old one) and askin them about
that ..

nate

Krzys Majewski wrote:
 
 Sadly, interrupt 12  is not listed in the  power management section of
 the BIOS setup. It goes, perversely, something like this:
 
 Interrupt 3 [Primary Secondary Disabled]
 Interrupt 4 [Primary Secondary Disabled]
 Interrupt 5 [Primary Secondary Disabled]
 Interrupt 6 [Primary Secondary Disabled]
 Interrupt 7 [Primary Secondary Disabled]
 Interrupt 8 [Primary Secondary Disabled]
 Interrupt 9 [Primary Secondary Disabled]
 Interrupt 10 [Primary Secondary Disabled]
 Interrupt 11 [Primary Secondary Disabled]
 Interrupt 13 [Primary Secondary Disabled]
 Interrupt 14 [Primary Secondary Disabled]
 Interrupt 15 [Primary Secondary Disabled]
 
 Bummer. -chris
 
   but no go. Then again, /proc/interrupts says:
  
   12: 130888  XT-PIC  PS/2 Mouse
  
   Note that 12 != 4. WTF? -chris
 
  you have a PS/2 mouse, and it's on interrupt 12. Try disabling
  that. /dev/mouse indicates that you're providing your mouse to X via
  gpm, so you'd have to check your gpm config to see what it thinks is
  your mouse (see /etc/gpm.conf).
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 
:::
ICQ: 75132336
http://www.aphroland.org/
http://www.linuxpowered.net/
[EMAIL PROTECTED]



APM: disable mouse interrupt?

2000-09-17 Thread Krzys Majewski
How can I disable the mouse interrupt for APM so that moving the mouse
does not resume the machine? (The  mouse is on my desk, there are other
things on my desk, some of these things move occasionally, etc.) 
I tried disabling IRQ4 in the  apm section of the bios setup, which I
*think* is my mouse interrupt because 

14:29:24~$ setserial /dev/ttyS0
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4

and because 

14:29:25~$ ls -la /dev/mouse
lrwxrwxrwx1 root root7 Aug 30 15:54 /dev/mouse - gpmdata
14:29:50~$ ls -la /dev/modem
lrwxrwxrwx 1 root root 10 Aug 27 06:20 /dev/modem - /dev/ttyS1

but no go. Then again, /proc/interrupts says:

12: 130888  XT-PIC  PS/2 Mouse

Note that 12 != 4. WTF? -chris



Re: APM: disable mouse interrupt?

2000-09-17 Thread Brendan Cully
On Sunday, 17 September 2000 at 14:31, Krzys Majewski wrote:
 How can I disable the mouse interrupt for APM so that moving the mouse
 does not resume the machine? (The  mouse is on my desk, there are other
 things on my desk, some of these things move occasionally, etc.) 
 I tried disabling IRQ4 in the  apm section of the bios setup, which I
 *think* is my mouse interrupt because 
 
 14:29:24~$ setserial /dev/ttyS0
 /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
 
 and because 
 
 14:29:25~$ ls -la /dev/mouse
 lrwxrwxrwx1 root root7 Aug 30 15:54 /dev/mouse - gpmdata
 14:29:50~$ ls -la /dev/modem
 lrwxrwxrwx 1 root root 10 Aug 27 06:20 /dev/modem - /dev/ttyS1
 
 but no go. Then again, /proc/interrupts says:
 
 12: 130888  XT-PIC  PS/2 Mouse
 
 Note that 12 != 4. WTF? -chris

you have a PS/2 mouse, and it's on interrupt 12. Try disabling
that. /dev/mouse indicates that you're providing your mouse to X via
gpm, so you'd have to check your gpm config to see what it thinks is
your mouse (see /etc/gpm.conf).

Having your modem on ttyS1 probably means nothing.

-- 
Don't make Godzilla mad!


pgplYlC2uuMFn.pgp
Description: PGP signature


RE: APM Disable

2000-05-20 Thread Jay Kelly
It look like the monitor doesnt shutoff, the led on the front of the monitor
doesnt even change. I think whats happening is maybe a screen saver that
black is coming on. How do I see if thats the case.

-Original Message-
From: Adam Shand [mailto:[EMAIL PROTECTED]
Sent: Friday, May 19, 2000 1:18 PM
To: [EMAIL PROTECTED]
Cc: Jay Kelly; debian-user@lists.debian.org
Subject: Re: APM Disable



 According to the only package I found on Debian's site concerning APM
 (apmd): The Debian default kernel does *not* contain APM support,
 because it causes problems on some computers.

as of a few kernels ago in potato (at least a few months ago but i can't
remember when) apm support *is* enabled but you have to turn it on with an
option in your lilo.conf.  i know this works cause i use it all the time on
my laptop.  to get apm add this to your lilo.conf (run lilo) and reboot:

append=apm=on

 I don't remember how to change the screen saver settings, but a quick
 search of the Debian Mail archives should turn up something for you, as
 that's discussed fairly regularly on this list.

check out the command xset.  i believe that is what you want.

adam.


--
Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
/dev/null



Re: APM Disable

2000-05-20 Thread Kent West
Jay Kelly wrote:
 
 It look like the monitor doesnt shutoff, the led on the front of the monitor
 doesnt even change. I think whats happening is maybe a screen saver that
 black is coming on. How do I see if thats the case.


Try xset -q which will display the current X settings. Look in that
list to see if DPMS (Energy Star stuff) is enabled or disabled. Also
look in that list to see if the Screen Saver's prefer blanking is
yes or no.

To turn off DPMS, xset -dpms.

To turn off screen saver, xset s off.

Or at least that's what I understand from briefly looking at man xset
and the result of xset.

 
 -Original Message-
 From: Adam Shand [mailto:[EMAIL PROTECTED]
 Sent: Friday, May 19, 2000 1:18 PM
 To: [EMAIL PROTECTED]
 Cc: Jay Kelly; debian-user@lists.debian.org
 Subject: Re: APM Disable
 
  According to the only package I found on Debian's site concerning APM
  (apmd): The Debian default kernel does *not* contain APM support,
  because it causes problems on some computers.
 
 as of a few kernels ago in potato (at least a few months ago but i can't
 remember when) apm support *is* enabled but you have to turn it on with an
 option in your lilo.conf.  i know this works cause i use it all the time on
 my laptop.  to get apm add this to your lilo.conf (run lilo) and reboot:
 
 append=apm=on
 
  I don't remember how to change the screen saver settings, but a quick
  search of the Debian Mail archives should turn up something for you, as
  that's discussed fairly regularly on this list.
 
 check out the command xset.  i believe that is what you want.
 
 adam.
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED] 
 /dev/null
 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null



Re: APM Disable

2000-05-20 Thread w trillich
my monitor shots off (led in front stays on, but no scan lines
show up even at maximum brightness) in console mode after
a few minuntes. xwindows ain't even running.

before running into debian i'd tried freebsd, and their
default install had a neat set of screensavers in console
mode that switched to some kind of graphic mode, for
traveling star fields  so forth, without xwindows
running anywhere.

some may not like the screen blanking, or want to change
the parameters; i like it because linux sits in my basement
serving and listening and logging while i do my work via
telnet from upstairs.

on my setup i think the poweroff feature is in bios...
unless the console mode (no xwindows) has a screensaver
option?

-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Their is five errers in this sentance.



APM Disable

2000-05-19 Thread Jay Kelly
Hello Guys,
After a few minutes my monitors shut due to APM. Where do I shutoff APM? I
checked the bios and didnt see anything dor the monitor.
Any sugestion would be great



Re: APM Disable

2000-05-19 Thread Richard Klinda
Hoi Jay!

  Jay After a few minutes my monitors shut due to APM. Where do I
  Jay shutoff APM? I checked the bios and didnt see anything dor the
  Jay monitor.  Any sugestion would be great

How about setting your monitor's turn off time?  Under X xset, under
console setterm can do the job for you.

For ex:

  xset dpms 120 120 16200

Blanks the screen after 2 minutes, and turns off the monitor after
16200/60 = 27 minutes.  (You might insert that line into your
.xinitrc.)

With setterm, look for the -powersave switch in the manual!

-- 
ignotus
   Never make any mistaeks.
  -- Anonymous, in a mail discussion about to a kernel bug report



Re: APM Disable

2000-05-19 Thread Kent West
Jay Kelly wrote:

 Hello Guys,
 After a few minutes my monitors shut due to APM. Where do I shutoff APM? I
 checked the bios and didnt see anything dor the monitor.
 Any sugestion would be great

 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

According to the only package I found on Debian's site concerning APM (apmd): 
The
Debian default kernel does *not* contain APM support, because it causes 
problems on
some computers.

So unless you've recompiled your kernel for APM, it's probably only a screen 
saver
blanker instead of APM, or it's built into the monitor itself and is perhaps
activated after the screen saver kicks in.

Does the monitor's power light go off or start flashing, or does the screen 
just go
blank?

I don't remember how to change the screen saver settings, but a quick search of 
the
Debian Mail archives should turn up something for you, as that's discussed 
fairly
regularly on this list.




Re: APM Disable

2000-05-19 Thread Adam Shand

 According to the only package I found on Debian's site concerning APM
 (apmd): The Debian default kernel does *not* contain APM support,
 because it causes problems on some computers.

as of a few kernels ago in potato (at least a few months ago but i can't
remember when) apm support *is* enabled but you have to turn it on with an
option in your lilo.conf.  i know this works cause i use it all the time on
my laptop.  to get apm add this to your lilo.conf (run lilo) and reboot:

append=apm=on

 I don't remember how to change the screen saver settings, but a quick
 search of the Debian Mail archives should turn up something for you, as
 that's discussed fairly regularly on this list.

check out the command xset.  i believe that is what you want.

adam.