Messages in this thread | | | Date | Thu, 26 Mar 2009 08:14:31 +0000 | From | Alan Cox <> | Subject | Re: Linux 2.6.x - Serial port signalling not maintained when closing device |
| |
> As far as I can see, I need to have an application that keeps /dev/ttyS0 > open for this to work. As soon as no application is using the port, > everything goes down again.
Yes - the 2.6 kernel has the newer uart driver layer and is also (throughout) much more aggressive about power management. You'll see the same with magic electronic project parallel port hacks where the port is turned off when the device file is not open.
> This is a significant change between 2.4.x and 2.6.x.
Only to your rather unusual use of things. For normal use the current behaviour is far more correct.
> Is there a way to > change 2.6.x behavior to go back to the 2.4.x ? When was this change > introduce ?
Just keep the port open when you are using it. Even in 2.4 the driver could have been unloaded on some setups if you didn't have a port open.
Alan
| |