APM unusable since 2.4.10
Hello, I have a Mitac 7521 laptop, which is a SIS630 chipset with a Phoenix BIOS and some interesting hardware around. Until kernel 2.4.9 included I was able to suspend to ram and to disk with APM and to have my system back most of the times, and I was almost happy with that. Since kernel 2.4.10, when APM kicks in for anything (even just for turning off the LCD display), the system gets badly hung and I have to switch it off the hard way (i.e. holding down the power button for >4 seconds). For now I resorted to ACPI, but in its current state I loose all suspend and hybernation features I had. Does anybody have experienced with similar problems, and has some more informations to give me about it? Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini (Unibo) <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: APM de-hibernation not always succeeds
On Mon, Nov 26, 2001 at 02:58:23PM -0800, Sean 'Shaleh' Perry wrote: > > Short resume of the current status: > > - random de-hibernation console freezes (did not try to access from the > >network) > > - apmd not noticing the hibernation event > is this the internal keyboard and mouse or external usb based ones? Have you > tried not having sound loaded? Internal keyboard and mouse, with and without sound loaded. Bye, Enrico -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Thoughts on network detection and configuration on Debian
Hi everybody! Many great people provided great comments and ideas to my thought and the picture gets bigger. Another twist is added by the fact that it's holiday time here in Italy, and I have eaten and drunk things that no English words to my knowledge can describe :) You made me discover that my thoughts were limited in may ways; among others I considered ifupdown the main center for profile detection and reconfiguration, and I supposed that all the possible system configurations could be represented by many distinct profiles. The problem gets bigger and involves many (still independent) parts of Debian: apmd, acpid, network tools, pppd, pcmcia-cs, hotplug are some examples of parts of Debian that cause or detect changes on the system and provide hooks to react to them, and more can be expected to be added in the future. Reacting to IrDA discoveries comes to mind, as well as deploying a tool to enable some services based on user requests (take a look to http://reshare.sf.net for an example of a tool to manage such requests. Ready to be added to Debian if needed, btw.). Right now there are utilities to scratch many of the itches related to this, but Debian seems not to have a masterplan to define its behaviour for a system that should react to a changing configuration. Maybe I should retarget my thoughts and start addressing this whole issue? In fact, right now we already have some problems: pppd scripts might need to be filled with `if's checking if other network connectivity is present, and start some network services only depending on if the system is running on AC power or if a given PCMCIA hard drive is present. A DNS or a network route might need to be reconfigured by pppd, pcmcia-cs and network-detection tools. At the current state of things this things, if pushed, can easily lead to a mess. Maybe it's time to design a tool that gathers all notification of the changes that happen in the system and provides the user with a single point to program the logic to react to them, and standardize it in such a way that other parts of Debian can interact with it? With it we could have tools specialized for detection, tools specialized for reconfiguration and a central point that can do the coordination to make them work together. I can easily see that the issue will become more important in the future, as outplugging devices will become more popular and Linux systems will be deployed in environments that require more flexibility. Am I still under the effects of my wonder-lunch (anyone here is invided should you pass in the nearby) or is there some logic in all this? If there is, I'm ready to get to work. Bye, Enrico P.S. In the meantime, we might still like to think about merging efforts to share functionalities with all the network detection tools, and it would still be an interesting work. Unluckily I won't have access to whereami until tuesday so I can't make studies right now, besides proposing to extract the link-beat detection code from laptop-net in a daemon that launches a script when the link goes up or down on a given interface and let users hook their preferred tool to it. -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
subscribe
subscribe -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: setting up network
On Sun, Jan 23, 2005 at 08:26:43PM +0100, Kai Hildebrandt wrote: > I use the map-scheme to decide which connection has to be used. If you > have an Internet router at home your laptop can ping on this should > work. > You have to define a mapping in /etc/network/interfaces: Same example as you, but using guessnet: --- mapping eth0 script /usr/sbin/guessnet-ifupdown map default: hotel iface home inet static address 192.168.1.3 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 # dns-* options are implemented by the resolvconf package, if installed dns-nameservers 192.168.1.1 dns-search your-nework.de # test* options are implemented by guessnet # This would be what you are doing: #test-peer address 192.168.1.1 # Strongly suggested to also include the peer MAC address in the # test, so that you're sure that you're matching the right host test-peer address 192.168.1.1 mac AA:BB:CC:DD:EE:FF iface hotel inet dhcp --- And that's it: no other scripts needed, scan is done with a simple ARP request that works also if the gateway firewalls pings, no need to supply a source address, many different hosts can be scanned in parallel. And if you want to get rid of the DCHP scan at boot if you're unplugged, you can add this other stanza: iface none inet static # 0.0.0.0 doesn't work with some network drivers: if it is your # case, use some random address like 10.0.0.1/24. # Better ways of handling this have been suggested to ifupdown: # see bugs #76142, #92993, #96265, #129003, #164823, #171981 or # even better #204641. address 0.0.0.0 netmask 0.0.0.0 test missing-cable Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: ifplugd, guessnet, ifscheme, netscript, whereami, ... -- what should I use?
On Thu, Jun 09, 2005 at 08:55:41AM -0400, Matej Cepl wrote: > first of all -- is there FAQ somewhere? > wlan0 (@ my university, my wife's one, Internet cafe) via random DHCP > server. I used to use ifupdown-roaming on Debian/woody, but it disappeared. You can do similar things with ifplugd, waproamd and guessnet: ifplugd will ifup your eth0 when a cable is plugged and ifdown it when you remove the cable waproamd (IIRC) will ifup your wlan0 when you associate with an AP and ifdown it when you get out of range guessnet will help you choose the right configuration if you have more than one (see http://guessnet.alioth.debian.org/) > However, I would like to get some scripts which would set exim's smartserver > to a free SMTP server, etc. Can anybody suggest one (of course, fully > compatible with ifupdown)? ifplugd, waproamd and guessnet solve the triggering and the choosing problems; they don't configuring, though. I wrote a script which does what I need, but that area still needs some work. NetworkManager should do big things, but it's not yet in Debian afaik. > And why the h...l, maintainers of all these packages didn't set down and did > not create one package (or at least virtual package), which would just work > and make all additional settings (like for example setting of mail server) > via debconf configuration? Why cannot I do > dpkg-reconfigure ifupdown-laptop > ? I think because everyone has different wishes for detection and reconfiguration: whereami is hard to setup but allows for all sort of weird setups; guessnet integrates well with ifupdown; others ask you a question at boot, and so on. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Re: ifplugd, guessnet, ifscheme, netscript, whereami, ... -- what should I use?
On Fri, Jun 10, 2005 at 07:38:17AM +1200, Andrew McMillan wrote: > Along with Enrico, I think that the thing with the most promise is > probably Gnome Network Manager. With it's D-BUS communication between a > root daemon and a user monitoring and configuration doohickey in the > toolbar it looks to be the right sort of architecture for the solution. > If it could be hacked on to give it some way of making some of it's > choices without user intervention then I could make whereami do the > configuration changes that it does do through a daemon-based, D-BUS > controllable interface also. That would be good. That might finally be a way of putting our efforts together: I could hack guessnet to do some network scan when it sees a D-BUS request, and whereami can be the reconfiguration backend. Let's see when that comes to Debian. Ciao, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> signature.asc Description: Digital signature
Detect what is causing the hard drive to spin up
Hello, I've just setup noflushd and finally can enjoy to hear that damn hard drive to spin down after a while it's not in use. However, a few seconds after spin down, to my great frustration it spins up again, resuming that fastidious noise. Obviously, I wasn't doing anything to justify that spin up: I wasn't even touching the laptop. I've already tried to shut down the services that I thought could be the cause for this, but the spinups continue. Do you know if there's a way, like some kernel facility, to track what's doing these disk accesses? I would avoid me some long trial and error, and it would be the definitive tool to use in this investigation: I'd be really happy to use it. Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
Reducing traffic to XFree86.0.log
Hello, In my efforts to trade disk writes for silence I've gone through a continued narrowing down of causes[1], and I'm now facing with the XFree86.0.log file. What happens is that the wacom driver often complains about not finding the /dev/input/event0 device (ehi, it's USB, it's hot-pluggable, that's fine, why bother?) and the development-stage SiS driver prints debug tracing stuff about normal but unusual events, like the monitor entering power saving modes (doh!). I'd need some way to change the verbosity level in a driver-by-driver basis (silencing wacom and SiS a bit and letting the other parts of X complain undisturbed). However, I couldn't find any documentation on how to do that. Do you have any clues? Bye, Enrico [1] Thanks Jeff for the find tips! However, it seems that there's no better shortcut, like the kernel write log I was hoping to find. :( -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
APM unusable since 2.4.10
Hello, I have a Mitac 7521 laptop, which is a SIS630 chipset with a Phoenix BIOS and some interesting hardware around. Until kernel 2.4.9 included I was able to suspend to ram and to disk with APM and to have my system back most of the times, and I was almost happy with that. Since kernel 2.4.10, when APM kicks in for anything (even just for turning off the LCD display), the system gets badly hung and I have to switch it off the hard way (i.e. holding down the power button for >4 seconds). For now I resorted to ACPI, but in its current state I loose all suspend and hybernation features I had. Does anybody have experienced with similar problems, and has some more informations to give me about it? Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini (Unibo) <[EMAIL PROTECTED]>
Re: APM de-hibernation not always succeeds
On Mon, Nov 26, 2001 at 02:58:23PM -0800, Sean 'Shaleh' Perry wrote: > > Short resume of the current status: > > - random de-hibernation console freezes (did not try to access from the > >network) > > - apmd not noticing the hibernation event > is this the internal keyboard and mouse or external usb based ones? Have you > tried not having sound loaded? Internal keyboard and mouse, with and without sound loaded. Bye, Enrico
Re: Thoughts on network detection and configuration on Debian
Hi everybody! Many great people provided great comments and ideas to my thought and the picture gets bigger. Another twist is added by the fact that it's holiday time here in Italy, and I have eaten and drunk things that no English words to my knowledge can describe :) You made me discover that my thoughts were limited in may ways; among others I considered ifupdown the main center for profile detection and reconfiguration, and I supposed that all the possible system configurations could be represented by many distinct profiles. The problem gets bigger and involves many (still independent) parts of Debian: apmd, acpid, network tools, pppd, pcmcia-cs, hotplug are some examples of parts of Debian that cause or detect changes on the system and provide hooks to react to them, and more can be expected to be added in the future. Reacting to IrDA discoveries comes to mind, as well as deploying a tool to enable some services based on user requests (take a look to http://reshare.sf.net for an example of a tool to manage such requests. Ready to be added to Debian if needed, btw.). Right now there are utilities to scratch many of the itches related to this, but Debian seems not to have a masterplan to define its behaviour for a system that should react to a changing configuration. Maybe I should retarget my thoughts and start addressing this whole issue? In fact, right now we already have some problems: pppd scripts might need to be filled with `if's checking if other network connectivity is present, and start some network services only depending on if the system is running on AC power or if a given PCMCIA hard drive is present. A DNS or a network route might need to be reconfigured by pppd, pcmcia-cs and network-detection tools. At the current state of things this things, if pushed, can easily lead to a mess. Maybe it's time to design a tool that gathers all notification of the changes that happen in the system and provides the user with a single point to program the logic to react to them, and standardize it in such a way that other parts of Debian can interact with it? With it we could have tools specialized for detection, tools specialized for reconfiguration and a central point that can do the coordination to make them work together. I can easily see that the issue will become more important in the future, as outplugging devices will become more popular and Linux systems will be deployed in environments that require more flexibility. Am I still under the effects of my wonder-lunch (anyone here is invided should you pass in the nearby) or is there some logic in all this? If there is, I'm ready to get to work. Bye, Enrico P.S. In the meantime, we might still like to think about merging efforts to share functionalities with all the network detection tools, and it would still be an interesting work. Unluckily I won't have access to whereami until tuesday so I can't make studies right now, besides proposing to extract the link-beat detection code from laptop-net in a daemon that launches a script when the link goes up or down on a given interface and let users hook their preferred tool to it. -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]>
Proposal for an infrastructure for systems with multiple configurations
Hello, after some time spent in thinking, design and developing, I've wrapped up a pre-release for a tool that aims to provide a clean infrastructure to manage systems with multiple configurations, like laptops. The software is called stated and is found in: http://people.debian.org/~enrico/stated.html stated is a daemon that keeps track of the system state, reacting to changes. It manages a set of user-defined variables representing the system state; when some variable changes, user-defined code is executed to reconfigure the system for the new situation. Stated can be used to gather all kind of informations like battery charge, LAN network identification, PPP connection status, USB or PCMCIA devices present in the system, etc. in a single place and to run reconfiguration scripts with a more complete knowledge of the situation. stated also provides an interpreter for simple special-purpose language costructs that ease writing complex action scripts. The difference with other programs used to reconfigure a system on the fly is in the approach: stated does not know anything about the system and just holds a model of it in the form of user-defined variables. This makes it generic, providing a level of abstraction upon which it should be possible to easily build handlers for complicated reconfiguration scenarioes. The package, among all other documentation, contains a RATIONALE file with more detailed discussion on the design choices that have been made to come up with it. I make the announce here to gather feedback about the package; if people other than me will find it at least potentially useful, I'll be happy to go on with the TODO, fill in some little gaps it still have and add it to the Debian system. Please let me know what you think about it. Yours truly, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Proposal for an infrastructure for systems with multiple configurations
Hello, after some time spent in thinking, design and developing, I've wrapped up a pre-release for a tool that aims to provide a clean infrastructure to manage systems with multiple configurations, like laptops. The software is called stated and is found in: http://people.debian.org/~enrico/stated.html stated is a daemon that keeps track of the system state, reacting to changes. It manages a set of user-defined variables representing the system state; when some variable changes, user-defined code is executed to reconfigure the system for the new situation. Stated can be used to gather all kind of informations like battery charge, LAN network identification, PPP connection status, USB or PCMCIA devices present in the system, etc. in a single place and to run reconfiguration scripts with a more complete knowledge of the situation. stated also provides an interpreter for simple special-purpose language costructs that ease writing complex action scripts. The difference with other programs used to reconfigure a system on the fly is in the approach: stated does not know anything about the system and just holds a model of it in the form of user-defined variables. This makes it generic, providing a level of abstraction upon which it should be possible to easily build handlers for complicated reconfiguration scenarioes. The package, among all other documentation, contains a RATIONALE file with more detailed discussion on the design choices that have been made to come up with it. I make the announce here to gather feedback about the package; if people other than me will find it at least potentially useful, I'll be happy to go on with the TODO, fill in some little gaps it still have and add it to the Debian system. Please let me know what you think about it. Yours truly, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Detect what is causing the hard drive to spin up
Hello, I've just setup noflushd and finally can enjoy to hear that damn hard drive to spin down after a while it's not in use. However, a few seconds after spin down, to my great frustration it spins up again, resuming that fastidious noise. Obviously, I wasn't doing anything to justify that spin up: I wasn't even touching the laptop. I've already tried to shut down the services that I thought could be the cause for this, but the spinups continue. Do you know if there's a way, like some kernel facility, to track what's doing these disk accesses? I would avoid me some long trial and error, and it would be the definitive tool to use in this investigation: I'd be really happy to use it. Bye, Enrico -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Reducing traffic to XFree86.0.log
Hello, In my efforts to trade disk writes for silence I've gone through a continued narrowing down of causes[1], and I'm now facing with the XFree86.0.log file. What happens is that the wacom driver often complains about not finding the /dev/input/event0 device (ehi, it's USB, it's hot-pluggable, that's fine, why bother?) and the development-stage SiS driver prints debug tracing stuff about normal but unusual events, like the monitor entering power saving modes (doh!). I'd need some way to change the verbosity level in a driver-by-driver basis (silencing wacom and SiS a bit and letting the other parts of X complain undisturbed). However, I couldn't find any documentation on how to do that. Do you have any clues? Bye, Enrico [1] Thanks Jeff for the find tips! However, it seems that there's no better shortcut, like the kernel write log I was hoping to find. :( -- GPG key: 1024D/797EBFAB 2000-12-05 Enrico Zini <[EMAIL PROTECTED]> -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: which process is accessing my hard drive?
On Mon, Mar 01, 2004 at 11:35:55AM -0500, Matt Price wrote: > ps, attached). But somehow the hard drive keeps spinning back up > spontaneously. Who's accessing my hard drive?? I don't have the > slightest idea how to find out, or (even better) figure out how to > stop it from happening. > Can anyone help me with this? Some time ago I had the same problem and came out with this script, that lists files sorted by access time: #!/bin/sh # Script ideas courtesy of Jeff Coppock # from the debian-laptop list TIMEBACK=${1:-5} EXCLUDE="-path /usr -prune -o -path /var/src -prune -o -path /var/opt/usr -prune -o" WORKFILE=/ram/report_disk_access cat /dev/null > $WORKFILE for P in / /var do find $P $EXCLUDE -mount -printf "%As %Ts %p\n" >> $WORKFILE # echo "$P List:" # find $P $EXCLUDE -mount -type d # echo "$P: Accessed in the last $TIMEBACK minutes:" # find $P $EXCLUDE -mount -amin $TIMEBACK # echo "$P: Modified in the last $TIMEBACK minutes:" # find $P $EXCLUDE -mount -mmin $TIMEBACK done Ciao, Enrico -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: mobile phone nightmare
On Mon, Mar 08, 2004 at 10:50:11AM +0100, Alessandro Speranza wrote: > 1-Nokia 6610 (279 Euro!!!) with a usb cable (82 EURO) can do this > 2-Siemens c 66 (I think) with camera (???) and usb cable (about 350 Euro > all together) can do this > 3-Motorola c350 (99 Euro!?) with a simple (3 Euro or something cable) can > do this as well, but doesn't have the usless camera. Someone told me that Siemens S55 does nice stuff (and comes with no cameras!) when connected to a computer. No USB cable, though, but bluetooth. You should probably investigate in a bluetooth USB dongle to connect newer mobile phones to your computer anyway. Ciao, Enrico -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: which process is accessing my hard drive?
On Mon, Mar 01, 2004 at 11:35:55AM -0500, Matt Price wrote: > ps, attached). But somehow the hard drive keeps spinning back up > spontaneously. Who's accessing my hard drive?? I don't have the > slightest idea how to find out, or (even better) figure out how to > stop it from happening. > Can anyone help me with this? Some time ago I had the same problem and came out with this script, that lists files sorted by access time: #!/bin/sh # Script ideas courtesy of Jeff Coppock # from the debian-laptop list TIMEBACK=${1:-5} EXCLUDE="-path /usr -prune -o -path /var/src -prune -o -path /var/opt/usr -prune -o" WORKFILE=/ram/report_disk_access cat /dev/null > $WORKFILE for P in / /var do find $P $EXCLUDE -mount -printf "%As %Ts %p\n" >> $WORKFILE # echo "$P List:" # find $P $EXCLUDE -mount -type d # echo "$P: Accessed in the last $TIMEBACK minutes:" # find $P $EXCLUDE -mount -amin $TIMEBACK # echo "$P: Modified in the last $TIMEBACK minutes:" # find $P $EXCLUDE -mount -mmin $TIMEBACK done Ciao, Enrico
Re: mobile phone nightmare
On Mon, Mar 08, 2004 at 10:50:11AM +0100, Alessandro Speranza wrote: > 1-Nokia 6610 (279 Euro!!!) with a usb cable (82 EURO) can do this > 2-Siemens c 66 (I think) with camera (???) and usb cable (about 350 Euro > all together) can do this > 3-Motorola c350 (99 Euro!?) with a simple (3 Euro or something cable) can > do this as well, but doesn't have the usless camera. Someone told me that Siemens S55 does nice stuff (and comes with no cameras!) when connected to a computer. No USB cable, though, but bluetooth. You should probably investigate in a bluetooth USB dongle to connect newer mobile phones to your computer anyway. Ciao, Enrico
subscribe
subscribe