LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-14-2013, 02:54 PM   #1
girvinh
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 31

Rep: Reputation: 2
Slackware 14.0 Linux user cross-contamination


Greetings,
Ever since I installed Slackware 14.0 Linux (K3.5.10), I have noticed a disturbing effect with it in that one user affects another user!

I am using the SMP Huge kernel and ever since I installed S14.0, I have noticed KDE apps in my user account being killed when I am working in another login console, especially a root console. This should not happen in Linux!

The scene is that I log in to the main console (F1), bring up KDE4 and start a few apps such as Xine playing a web radio stream and a Klondike card game, use Ctrl-Alt-F4 for example to open a new login console, log in as root and do some work in the root console. After that work is done, I switch back to the user KDE4 session with F7 and discover Xine and/or Klondike is no longer running. It or they got killed somehow. This only seems to affect actively running apps on the desktop, since the inactive apps in the task bar do not seem to be affected. Another symptom is the KDE program run command popup may be visible when I never invoked it. These symptoms imply that there is a multi-user cross-contamination bug somewhere. This should not happen in a true multi-user system such as Linux. I must note that this effect is not consistent nor repeatable. It appears random.

At first, I thought this may be a hardware problem with my 10+ year old computer, but it still happens with my new computer, an AMD Athlon II 3.4GHz 8GB system.

Anyone else experience this and/or is it a known bug in this new 3.x Linux?

Thanks in advance.
Girvin Herr
 
Old 09-14-2013, 05:58 PM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 755

Rep: Reputation: 226Reputation: 226Reputation: 226
With the apps closing are you sure you've got your finger down on the CTRL key properly as ALT+F4 is close and ALT+F2 drops the run dialog box down.

Also is the keyboard the same, perhaps it's on the way out.
 
Old 09-14-2013, 06:54 PM   #3
kingbeowulf
Member
 
Registered: Oct 2003
Location: WA
Distribution: Slackware64 14.1, Slackware 14.1
Posts: 519

Rep: Reputation: 137Reputation: 137
Nope, console switching while X apps are running works fine here (Slack64 14 multilib Xfce 4.10 dual monitor). This does sound like a possible keyboard issue as wildwizard mentioned. You can try running "xev" in a terminal window and see if any kb buttons don't respond reliably.

On the other hand, I don't bother with this anymore. I just pop open a terminal window (Terminal, Konsole, xterm etc) and just "su -" since that way I can do root stuff and still what vids.irc, etc. etc on the 2nd monitor.
 
Old 09-16-2013, 03:44 PM   #4
girvinh
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: 2
Thanks for the prompt replies.
Now that you both mention the possible keyboard effects, I thought it was a separate issue so I didn't mention it, but I now see the connection. Yes, ever since I installed S14.0, my left shift and left ctrl keys have been messing up occasionally. The right shift and ctrl keys seem to be fine. I thought it was the keyboard, but I have tried two other keyboards, one a less-used version of the one that was giving me the problems, and a completely different type. Both had exhibited the same problems, so I ruled out the keyboard as the root cause of the problem. I then suspected my old motherboard and/or the PS/2 interface on it, and after I switched to the new Mobo and did a fresh install of S14.0, the keyboard seemed to be working. Now, almost a month later, the problem has been getting worse again. I can hold the left shift key down and partway through a capitalized word, the shift will stop and I will get lower case until I release the left shift and then re-press it. Then it may work again until the next time. It certainly sounds like a bad keyboard, but I cannot isolate the problem. I tried moving the shift key around horizontally while typing upper case in case the key contacts where at fault, but that would not cause the problem. I am at a loss for a solution to this problem, since I cannot determine a root cause. It looks like software, but...

Since the left Ctrl key is also affected, the suggestion that it is the culprit for the closed apps etc. is a good one. I do believe now that is what is happening, but why would a miss-key in one user's (i.e. root) space affect the KDE domain (F7) in another user's space (F1)? That still does not seem correct for a multi-user environment.

I just tried xev as suggested and I seem to be getting somewhat periodic spurious "KeyRelease" and "KeyPress" events while holding the shift key down or even not touching the keyboard at all! Ahh! Another clue - it seems to be connected to xine. I get the spurious events if xine is playing my web stream. As soon as I stop the stream, the spurious events stop. I discovered that when xine is reduced to the task bar, I no longer get the spurious events either. I started looking at the xine Setup GUI options and discovered a "Screensaver reset interval (s)" option, which has a help of: "Time in seconds between two faked events to keep a screensaver quiet, 0 to disable". I set this to 0 and the spurious events stopped. That looks like it may be the culprit.

Yes, I could use multiple terminals in KDE. I tried that for a while after installing S14.0 with KDE4. However, I tend to open several Midnight Commander (mc) sessions for the work I do. KDE3 had a terminal feature which did allow multiple mc sessions open at once with tabs to select which session I wanted to use. It even had a root mc session tab. However, KDE4 seems to have dropped that feature (among many others I liked). So, I open up additional login consoles and bring up mc in each one to get similar processes. Also, I found that KDE4's terminals do not render mc as well in them, and then there is the mc key binding issue, which I have not spent the time on to make changes in the terminal session to enable the mc key bindings. Maybe sometime later...

Thanks again for the help.
Girvin
 
1 members found this post helpful.
Old 09-18-2013, 12:02 AM   #5
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 162

Rep: Reputation: 23
Thanks for that! I knew xine was doing something evil with my keyboard too. I just took a look in the code and it's alternately pressing left ctrl and left shift. I've configured X to swap left ctrl and caps lock, so it ends up toggling caps lock for me about every 20 seconds.
 
Old 09-18-2013, 06:18 PM   #6
girvinh
Member
 
Registered: Mar 2011
Distribution: Slackware
Posts: 31

Original Poster
Rep: Reputation: 2
elyk,
I am not sure I want caps lock to be toggling while I am working on a document. Well, yes, I am sure: I wouldn't. So far, changing that xine option to 0 (zero) seems to be working. I have not had the problem since. However, I want to have more test time before I mark this thread as solved. Maybe a week should do. I understand what the xine programmers were trying to do to disable the screen saver while watching a video stream or DVD, that could be annoying. However, I think they chose a bad way to do it by messing with the keyboard events. Maybe they will fix that in a later version. In the meantime, since screen saving is a deprecated feature that LCD displays do not need, I plan to disable it elsewhere on my computer.
Girvin Herr
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Longtime Linux User, new Slackware user Keynone LinuxQuestions.org Member Intro 1 02-27-2009 01:25 PM
Cross-compile Slackware cpuobsessed Slackware 4 11-10-2007 06:08 PM
Viruses from Linux and cross contamination: a discussion Simon Bridge Linux - Security 11 04-17-2006 12:28 AM
Cross-Building Slackware as a whole? gargamel Slackware - Installation 2 05-09-2004 06:31 PM
module contamination? pbjazzy007 Linux - Networking 6 09-29-2003 07:38 PM


All times are GMT -5. The time now is 01:13 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration