LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 03-16-2011, 03:18 AM   #16
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199

Quote:
xbindkeys 1.8.5
14 Mar 00:05

Project Tags:
Desktop Environment

xbindkeys is a program that associates keys or mouse buttons to shell commands under X. After a little configuration, it can start many commands with the keyboard (e.g. control+alt+x starts an xterm) or with the mouse buttons.

Changes: This version adds Guile 2.0 support and replaces some deprecated functions.

Release Tags:
Minor bugfixes
License:
GPL
http://freshmeat.net/projects/xbindkeys

It's possible that suse packages x progs differently, but as far as I'm aware, with Mandriva it's a package on it's own.
 
Old 03-16-2011, 03:22 AM   #17
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
Okay, thanks. Good idea to look at freshmeat. Sourceforge would have been my next stop . I'll test this and be back (will again take a little while, I'll be out of town for the newt few days).
 
Old 03-16-2011, 03:46 AM   #18
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
Sorry to pester you again, but there is no "xte" on freshmeat nor on sourceforge. Where did you get it from? <edit> Found it: It is part of "xaut(omation)" on sourceforge. </edit> Thanks anyway .

Last edited by JZL240I-U; 03-16-2011 at 03:52 AM.
 
Old 03-16-2011, 06:04 AM   #19
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
I haven't read this/all arch-wiki, but generally, I find them well written and concise.

Cheers, Glenn

btw, freshmeat has a listing of a new version of xbindkeys.
Quote:
xbindkeys 1.8.5
14 Mar 00:05

Project Tags:
Desktop Environment

xbindkeys is a program that associates keys or mouse buttons to shell commands under X. After a little configuration, it can start many commands with the keyboard (e.g. control+alt+x starts an xterm) or with the mouse buttons.

Changes: This version adds Guile 2.0 support and replaces some deprecated functions.

Release Tags:
Minor bugfixes
License:
GPL
ref. http://freshmeat.net/projects/xbindkeys

I have a feeling that all this config stuff should be contained with X11, and /etc/X11/xorg.conf file.

I'm hoping you won't need xbindkeys for the rotation of the display.

Because, I have seen many displays setup at 90deg. I think it is normal, and we are not getting the support you deserve from those who know.

Can you tell I don't have a rote./90deg display?

One more thing, if you get randr set up with X11 (xrandr) the the display/desktop managers should just follow. I think you won't need to setup all and sundry, but do it once with X11 and have it seen by any display manager.

I'm not sure how this will affect the screen before login. But as a tip, termcap/terminfo is the file that looks after all that, before X11 starts.

I think(?)
cheers and all the best, Glenn
 
Old 03-16-2011, 06:12 AM   #20
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
It is contained in /etc/X11/xorg.conf as far as a static setup is chosen. I rotate by hand my monitors (or rather swivel mounted screens) sometimes after logging in (e.g. to read a document, which has ists print usually in the "portrait" orientation) and then swivel it back when I'm done. Modern Monitors have 16 : 10 or even 16 : 9 ratios like a paper sheet in "landscape" orientation. In those instances I want to 90-left-rotate respectively set the content upright with e.g. <ctrl><alt><arrow-left> or <ctrl><alt><arrow-up> as needed. That's why it can't be in a static setup.

Last edited by JZL240I-U; 03-16-2011 at 06:16 AM.
 
Old 03-16-2011, 07:11 AM   #21
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
You got your work cut out for you, hey?

All the best. Glenn
 
Old 03-16-2011, 07:47 AM   #22
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
Yep . I'll report the outcome.
 
Old 03-21-2011, 07:16 AM   #23
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
Works as proposed in the thread just as I wanted it to . Thank you GlennsPref, bluebox and redgoblin.

The syntax of xrandr is ... I won't write it here, but it truly is. Does it really have to read like ... "xrandr --output <output> --rotate rotation"? While one can easily find out how to substitute "rotation" the parameter "<output>" is, ummm, obscure. By a lot of experimentation I found out that it is (in my case) "DVI-0". I'll now have to experiment further with xbindkeysrc how to differentiate "DVI-0" vs. "DVI-1" . Oh, and "xrandr" is part of the xorg-package, no need to get an extra piece of software.

Well, and in the end I used xbindkeys after all. But what I'd like someone to explain is, why in heavens do I find xbindkeys in https://build.opensuse.org/package/b...enSUSE_Factory and not in a regular repository? Or is it in one of them? If so, in which one? Confusing, I'd really like an introduction in the use of openSuSE's repositories.

Ah, well, thanks again to all and sundry who partook in this thread.

Last edited by JZL240I-U; 03-21-2011 at 07:58 AM.
 
1 members found this post helpful.
Old 03-22-2011, 01:34 AM   #24
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 6
Quote:
Does it really have to read like ... "xrandr --output <output> --rotate rotation"? While one can easily find out how to substitute "rotation" the parameter "<output>" is, ummm, obscure. By a lot of experimentation I found out that it is (in my case) "DVI-0".
Yes, xrandr is a command line tool. The advantage is - it is scriptable. The disadvantage is this options any typing thingy.

You should see possible <output>s by:
Code:
xrandr -q
But it's tricky ... the names of the outputs are determined by your graphics driver - for me running the "nvidia" driver in twinview mode, it's just called "default".

Quote:
I'll now have to experiment further with xbindkeysrc how to differentiate "DVI-0" vs. "DVI-1"
uhm ... you could differentiate them by calling them "DVI-0" vs. "DVI-1" ;-)

Well, there's no need to differentiate in xbindkeysrc.

Just do a simple script:
Code:
#!/bin/sh
xrandr --output DVI-0 --rotate right --output DVI-1 --rotate right
and call it "rotateright.sh" (and make it executable).

Then, you tell xbindkeys to run this script on your favourite key-combination. Do "rotateleft.sh" analogous.

You can expand the scripts to do fancy stuff like resizing your windows.

Quote:
Confusing, I'd really like an introduction in the use of openSuSE's repositories.
That was one of many reasons I left SUSE long time ago. Either, SUSE works "out of the box" ... or you're lost most of the time.
 
Old 03-22-2011, 03:47 AM   #25
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bluebox View Post
...You should see possible <output>s by:
Code:
xrandr -q
But it's tricky ... the names of the outputs are determined by your graphics driver - for me running the "nvidia" driver in twinview mode, it's just called "default".
Ahhh. Learned something again . Nice. Thank you, bluebox.

Quote:
Originally Posted by bluebox View Post
...uhm ... you could differentiate them by calling them "DVI-0" vs. "DVI-1" ;-)
You don't say... .

Quote:
Originally Posted by bluebox View Post
...Well, there's no need to differentiate in xbindkeysrc.
What I wanted to express --and failed abysmally -- I want to be able to rotate them independently. I'll dig into that next time I've got some spare minutes.

Quote:
Originally Posted by bluebox View Post
...
Code:
#!/bin/sh
xrandr --output DVI-0 --rotate right --output DVI-1 --rotate right
Learned again. So one can address two outputs with one command.

Quote:
Originally Posted by bluebox View Post
...Either, SUSE works "out of the box" ... or you're lost most of the time.
There is something in this. On the other hand I use SuSE since the beginning (>10 years). And they have a very good German localization... What distribution would you commend, which is comparable in being up to date in the software SuSE is putting into its packages?

Last edited by JZL240I-U; 03-22-2011 at 03:49 AM.
 
Old 03-22-2011, 10:51 AM   #26
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 6
Quote:
Originally Posted by JZL240I-U View Post
What I wanted to express --and failed abysmally -- I want to be able to rotate them independently. I'll dig into that next time I've got some spare minutes.
So, you've 4 possible actions, so you'll need 4 scripts:
Code:
#!/bin/sh
xrandr --output DVI-0 --rotate right
Code:
#!/bin/sh
xrandr --output DVI-1 --rotate right
and "--rotate left" analogous.

So you will need to configure 4 key combinations in xbindkeysrc, one for each script.

Or, maybe, 2 are enough, as three "rotate right" is the same as one "rotate left".

Or you could enhance the scripts to remember the actual position and do a "rotate right" when the actual position is "rotated left". There are plenty of possibilities.

Quote:
Originally Posted by JZL240I-U View Post
There is something in this. On the other hand I use SuSE since the beginning (>10 years). And they have a very good German localization... What distribution would you commend, which is comparable in being up to date in the software SuSE is putting into its packages?
I will surely not start a distro war here. But I recommend you not to look at the distro with the "freshest software" but at the distro that makes you easily do what you want to do. If I remember right, you will find tutorials for Ubuntu and ArchLinux in this your thread and SUSE turned out to be a drawback and not a help.

This is exactly, what led me to debian, many years ago. I looked for solutions for SUSE, found some people with the same problem with SUSE and no solutions, but I found solutions for debian. So, I concluded, debian is the distro that makes me do what I want to do.
 
Old 03-22-2011, 11:01 AM   #27
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,689

Original Poster
Rep: Reputation: Disabled
I'll see how I can tackle the different outputs since they are connected to different seats, i.e. to two different instances of the x server, two different graphic cards etc. First thing I'll try is the double-output-with-one-command approach, since the keystrokes from one seat shouldn't affect the other (I think -- ermm, I hope).

No distro war intended. I liked Arch too, but they are not that much up to date and for my seats I need the newer x and kernel versions.
 
Old 03-22-2011, 12:03 PM   #28
bluebox
Member
 
Registered: Jun 2004
Posts: 71

Rep: Reputation: 6
Quote:
Originally Posted by JZL240I-U View Post
to different seats, i.e. to two different instances of the x server, two different graphic cards etc.
Oh yes, I see. It _may_ be that the names of the outputs change when you switch between single-seat-dual-head and dual-seat-single-head ... just in case you do so.

Quote:
Originally Posted by JZL240I-U View Post
First thing I'll try is the double-output-with-one-command approach, since the keystrokes from one seat shouldn't affect the other (I think -- ermm, I hope).
Uhm ... let me think about this ...

You have two users and xbindkeys is configured per user. The config file should go to $HOME/.xbindkeyrc. As you have two keyboards, the .xbindkeyrc can be identical for each user, but each user must have one .xbindkeyrc.

But the scripts that are called in .xbindkeyrc should be different for each user. For simplicity, call the scripts "rotateleft.sh" and "rotateright.sh" and put them in each users home directory. One "rotateleft.sh" script should manipulate DVI-0, the other one DVI-1. Of course, you can try the two-outputs-command if you're that kind of lazy, but it is just one letter you have to change to set it up properly.

btw, it _may_ be necessary to call xrandr with the -display option. Try to add "-display :0" or "-display :1" to the xrandr command line in case things don't work as expected.
 
1 members found this post helpful.
  


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
[SOLVED] Changing screen resolution on laptops with KDE 10 messes up desktop display garza Suse/Novell 8 08-09-2010 06:20 AM
display in monitor is too big for the screen in X Grid_Iron Linux - Hardware 1 04-26-2007 11:08 AM
Rotate Screen Display ! santoshpatel Linux - Hardware 3 06-19-2005 10:00 AM
How to rotate the Display using KDE Control Panel? blish_blash Linux - Software 1 03-17-2005 11:31 AM
Unable to rotate monitor in kde 3.2 ghow961 Linux - Software 2 05-01-2004 08:18 PM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
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