Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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".
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
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?