Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-12-2003, 10:36 AM
|
#1
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Rep:
|
Command line screen res changing in X from Xterm?
I have a little gui in X made out of perl/tk and that passes options to a C program that i want to run in <insert screen prefernce> mode even when the X server is running in 1024x768 by default.
So to clarify:
I am running X
I am in default 1024x768 mode
When the user decides he/she want to run program in another resolution they click their prefered resolution from drop down list.
They click ok button to launch the program.
The X session will now change resolution to the users prefered mode
When the user has finished with the program and quits, then it should return to the default res and the gui that launched the program in the first place.
At the moment i thought i could just pass the selected res to -geometry. So i tested it by passing the resolution that my screen is currently in so there would be no confusing for it, but that gives me:
ERROR: invalid geometry
i tryed using xrandr and that gives me:
bingo2:~$ xrandr -v
Xlib: extension "RANDR" missing on display ":0.0".
so now here i aml; stuck!
help please.
|
|
|
12-15-2003, 03:40 AM
|
#2
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
odd how there are a lot of linux gurus but when it comes to X its an enigma.
|
|
|
12-15-2003, 06:20 AM
|
#3
|
Member
Registered: May 2002
Posts: 179
Rep:
|
um...it works for me...i'm not a "guru" by any means, but the first place to start is possible missing libraries. 'ldd /usr/X11R6/bin/xrandr' gives me this output:
libXrandr.so.2 => /usr/X11R6/lib/libXrandr.so.2 (0x4002a000)
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x4002e000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x40036000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40044000)
libc.so.6 => /lib/libc.so.6 (0x4010b000)
libdl.so.2 => /lib/libdl.so.2 (0x40241000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
(some of the locations might be different depending on distribution)
are you sure you have all these libraries? if so another possibility is a problem in your XF86Config file...i remember seeing a option that stops a user from changing display size...perhaps that's there? hope this helps
verigoth
|
|
|
12-15-2003, 06:32 AM
|
#4
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
DontZoom option stops the ctrl-alt-+/- working if its enabled is that the one you are refering too? if so its off by default which doesnt help my cause.
|
|
|
12-15-2003, 07:00 AM
|
#5
|
Member
Registered: May 2002
Posts: 179
Rep:
|
did you check the libraries tho? they exist?
|
|
|
12-15-2003, 07:08 AM
|
#6
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
yeah i checked all my libs exist but mine isnt linked wth:
libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x4002e000)
but all the rest are.
|
|
|
12-15-2003, 07:17 AM
|
#7
|
Member
Registered: May 2002
Posts: 179
Rep:
|
this thing you're working on, is it some kind of script or unseen interface to xrandr or will it be something you write in C? if it's the second maybe you should try messing with the functions in Xrandr(3) (type 'man 3 Xrandr')...maybe it's just your xrandr program that's broken and not the RandR extension?
verigoth
|
|
|
12-15-2003, 07:23 AM
|
#8
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
well the plan was to in effect xargs the display that the user selects to xrandr which would then change the screen res.
|
|
|
12-15-2003, 02:42 PM
|
#9
|
Member
Registered: May 2002
Posts: 179
Rep:
|
if you wanted to try my xrandr (be sure to keep yours backed up somewhere) to see if that works you can get it from http://maug.wireless.mnsu.edu/~verigoth/xrandr.gz
other than that i don't think i can be much help
verigoth
|
|
|
12-16-2003, 08:29 AM
|
#10
|
Member
Registered: May 2002
Location: Essex, UK
Distribution: Debian, Redhat, AIX 5L
Posts: 512
Original Poster
Rep:
|
thanks for that.
I tried it and i get the same error.
|
|
|
All times are GMT -5. The time now is 12:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|