Fedora Linux Support Community & Resources Center
  #16  
Old 5th March 2011, 06:52 PM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: monitor/keybord/mouse sharing

I think in your case you wanted Num Lock and not Scroll Lock.

But I'm not sure that would work.

As a test you can create a script like this:
Code:
#!/bin/sh
xset led named "Num Lock";sleep 1;xset -led named "Num Lock"
give it 700 permissions and run it. If it works, it should turn the Num Lock turn on and then off.

Testing it here, it works when I use Scroll Lock (the LED blinks), but it doesn't work with Num Lock (the LED stays on). YMMV.

If you can figure out how to make the script work then you can worry about the keyboard shortcut.

SS
Reply With Quote
  #17  
Old 5th March 2011, 07:50 PM
bart11 Offline
Registered User
 
Join Date: Dec 2008
Posts: 55
linuxfedorafirefox
Re: monitor/keybord/mouse sharing

I think you are on to some thing slick.

#!/bin/sh
xset led named "Num Lock";sleep 1;xset -led named "Num Lock"



that does nothing for me but if i execute the script bellow twice it will switch screens


#!/bin/sh

xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"

like i said you have to do it twice or it will not work

I wonder how you do something like this?


#!/bin/sh

xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"
pause for 1 sec
xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"

I also wonder if it is this crapy keyboard but somehow i dont think so


thanks so much for your help

---------- Post added at 11:50 AM ---------- Previous post was at 11:33 AM ----------

ok now at least I have a luncher that will switch my display

#!/bin/sh
xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"
sleep 1
xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"

I wonder what the difference is between ubuntu and fedora on the way the keyboard is controlled.

thanks again for your help

Last edited by bart11; 5th March 2011 at 07:38 PM.
Reply With Quote
  #18  
Old 5th March 2011, 08:09 PM
SiliconSlick's Avatar
SiliconSlick Offline
Registered User
 
Join Date: Aug 2009
Location: College Station, TX
Posts: 501
linuxfedorafirefox
Re: monitor/keybord/mouse sharing

Glad you figured it out.

If the keyboard shortcut thingie only takes one line then you can just replace the newlines in what you have with semicolons. e.g.
Code:
xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock";sleep 1;xset led named "Scroll Lock";sleep 1;xset -led named "Scroll Lock"
As for Ubuntu, it may be due to the fact that they default to Unity now instead of Gnome for a desktop.

SS
Reply With Quote
  #19  
Old 5th March 2011, 09:39 PM
bart11 Offline
Registered User
 
Join Date: Dec 2008
Posts: 55
linuxfedorafirefox
Re: monitor/keybord/mouse sharing

I didn't figure it out
with out your help I would be still scratching my head.

im not going to beat my self up but I wonder why the

#!/bin/sh
xset led named "Num Lock";sleep 1;xset -led named "Num Lock"

did not light up the light?

anyway........

I like having a clickable icon to change screens

thanks so much for taking the time

have a good one
Reply With Quote
  #20  
Old 23rd May 2012, 08:52 PM
odedrim Offline
Registered User
 
Join Date: May 2012
Location: Everywhere
Posts: 1
linuxfirefox
Re: monitor/keybord/mouse sharing

SiliconSlick - you have no idea how much this has helped me.

I started thinking the KVM I just bought, and functions wonderfully, would turn out to be useless because the "hot key" shortcut for switching between computers - Scroll Lock twice - didn't work on the Linux machine.
But thanks to you (and a bit of googling) I now have Ctrl+ScrLk in Linux and ScrLk+ScrLk on Windows
(turns out that even after 8yrs of using Linux you can learn new options and commands)

Thank you!
Reply With Quote
Reply

Tags
sharing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
FC11 monitor, KB & mouse problem Leos Installation and Live Media 2 26th August 2009 03:26 PM
keybord error earobinson111 Using Fedora 0 24th October 2004 11:44 PM
keybord shortcuts? earobinson111 Using Fedora 4 26th September 2004 10:05 PM


Current GMT-time: 19:04 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat