Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
I'm running Xubuntu 8.04 in QEMU right now, and the only choices for resolution in my control panel are 800x600 and 640x480.
I tried editing the xorg.conf file by adding my desired resolution (1280x800) into the modes section, but all I succeeded in doing was crashing my system. When it went into low-graphics mode, my resolution ended up even smaller than ever, so I ran "sudo dpkg-reconfigure xserver-xorg" and all THAT did was get my resolution back to normal (800x600).
Can someone help me out here? I'm running a fresh install of Xubuntu 8.04 with all the defaults set pretty much in place. Keep in mind that I'm running QEMU, so auto-detection is (apparently) a little funky. If there's something I can do with the terminal either in Linux or in the QEMU bootline, I'm willing to try it.
I don't pretend to be an expert on either QEMU or Linux, so feel free to insult my intelligence.
I haven't run Ubuntu in QEMU but have seen a very similar problem with Fedora in Parallels on a Mac.
The problem (for me) would seem to be an issue relating to both the default colour depth and resolution.
I modified my xorg.conf from a default depth of 24 to 16. That allowed me to exceed the 800x600 resolution.
I then gradually increased the resolution beyond and the X server was fine up to 1200x1024 but anything over that and I started getting all sorts of issues that finally culminated in the X server failing to start.
Not the most helpful reply I guess but slowly stepping up the resolution may reveal your maximum setting.
Thanks for trying. Makes me feel good to know someone cares.
I can't figure out how to edit my conf file. Here's the entire xorg.conf thing in code brackets. If I can get some exact parameters to add in, that would help. If it had some numbers, I could play the file by ear. But this is the most unhelpful system file I've ever seen.
In order to do this you should press Ctrl-Alt-F1 to go to a terminal.
In Ubuntu type
Code:
sudo vi /etc/X11/xorg.conf
and edit the file. If you aren't familiar with vi then google it for instructions but simply put you need to press 'i' to go into insert mode, make the changes and when you have finished press 'escape' and type
Code:
:wq!
which will write the changes and quit.
You can then press Ctrl-Alt-F7 to go back to the GUI and then Ctrl-Alt-backspace to restart the Xserver.
Hopefully it will work fine at 1024x768. You can keep changing the xorg.conf until it breaks.
Best of luck...
Last edited by Unknown_User; 10-13-2008 at 03:53 PM.
Thanks. I really do appreciate the help... even though I'm not getting anywhere (as is often the case).
I tried what you said, adding the modes variable to the subsection, and I also added a line of code to the "monitor" section. (it started with modeline and followed up with specific refresh specs, I got it from running a command but I can't recall what it was)
It silently ignored everything I put in. It didn't crash on me this time, but I still have yet to see any results. Do you think it might have something to do with that depth variable? I've seen other questions on the site answering a similar question to change depth to 24 or other such numbers.
Maybe there's a package I could download to make this problem go away. Normally I could deal with this resolution thing, but Ubuntu just has such huge icons that there's no room for me to work! I'm using an Xterm just because the default terminal overflows out of the screen.
I do hope I'm not being a pain. You're far more helpful than I deserve.
Here's an excerpt I recently found in /var/log/Xorg.0.log
Code:
(II) CIRRUS(0): Not using default mode "640x350" (vrefresh out of range)
(II) CIRRUS(0): Not using default mode "320x175" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "640x400" (vrefresh out of range)
(II) CIRRUS(0): Not using default mode "320x200" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "720x400" (vrefresh out of range)
(II) CIRRUS(0): Not using default mode "360x200" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "640x480" (vrefresh out of range)
(II) CIRRUS(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "640x480" (vrefresh out of range)
(II) CIRRUS(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "640x480" (hsync out of range)
(II) CIRRUS(0): Not using default mode "320x240" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "800x600" (hsync out of range)
(II) CIRRUS(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "800x600" (hsync out of range)
(II) CIRRUS(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "800x600" (hsync out of range)
(II) CIRRUS(0): Not using default mode "400x300" (bad mode clock/interlace/doublescan)
(II) CIRRUS(0): Not using default mode "1024x768" (bad mode clock/interlace/doublescan)
)
And that's just a tiny snippet. Am I doomed to forever be stuck in this tiny box because of QEMU's lack of support for larger window resolutions?
It's weird, because I've run DSL in QEMU for a long while, and I can't get it SMALLER than 1280x1024. But then again, it uses Xvesa, not Xserver. It doesn't have a /etc/X11/Xorg.conf file either.
If anyone comes up with anything, I'll be waiting. Until then, I guess I'll just get used to using a super-scrunched up environment. As a Linux-user-wannabe, I suppose it shouldn't matter since I should be in the terminal anyways. But in case any QEMU geniuses out there can help me with my plight, I'll put this info up and be quiet.
It looks like the information that your monitor is sending is not being understood by the xserver as it seems to assume that just about any resolution or refresh rate is out of range.
Try adding to your device section so that it reads;
Are you using an LCD monitor? I'm sure that you know that you should be fine in trying this out but an old CRT can do odd things (and you can damage it) if you try a resolution or refresh rate that is manifestly outside its capabilities.
It's ignoring me telling it to ignore it and I still get the same results with the log file.
In QEMU, I'm able to utilize two different graphical chips... aCirrus CLGD 5446 PCI VGA card or dummy VGA card with Bochs VESA extensions (hardware level, including all non standard modes). I usually try both of them every time I edit the xorg-conf file. The log file is somewhat different with the emulated Bochs chip. Rather than testing every single possible configuration, it tests a few (including mine) and then won't even give me a choice of 800x600.
It still says hsync is out of range.
As a side note, I can also link Qemu's output to a physical monitor connected to my machine instead of the built-in virtual monitor (which I'm using now), but I don't know how to reference my laptop's monitor in 'port language.' If I stopped using Qemu's virtual monitor and instead used my own, I'd lose the ability to use Windows at the same time, but that's not really much of a loss. If you know how I could reference the monitor, here's some QEMU command line options of the relevant section out of the help file (I'm hosting on Windows Vista... why, I do not know):
`-serial dev'
Redirect the virtual serial port to host character device dev. The default device is vc in graphical mode and stdio in non graphical mode.
This option can be used several times to simulate up to 4 serials ports.
Use -serial none to disable all serial ports.
Available character devices are:
vc
Virtual console
pty
[Linux only] Pseudo TTY (a new PTY is automatically allocated)
none
No device is allocated.
null
void device
/dev/XXX
[Linux only] Use host tty, e.g. `/dev/ttyS0'. The host serial port parameters are set according to the emulated ones.
/dev/parportN
[Linux only, parallel port only] Use host parallel port N. Currently only SPP parallel port features can be used.
file:filename
Write output to filename. No character can be read.
stdio
[Unix only] standard input/output
pipe:filename
name pipe filename
COMn
[Windows only] Use host serial port n
udp:[remote_host]:remote_port[@[src_ip]:src_port]
This implements UDP Net Console. When remote_host or src_ip are not specified they default to 0.0.0.0. When not using a specifed src_port a random port is automatically chosen.
If you just want a simple readonly console you can use netcat or nc, by starting qemu with: -serial udp::4555 and nc as: nc -u -l -p 4555. Any time qemu writes something to that port it will appear in the netconsole session.
If you plan to send characters back via netconsole or you want to stop and start qemu a lot of times, you should have qemu use the same source port each time by using something like -serial udp::4555@:4556 to qemu. Another approach is to use a patched version of netcat which can listen to a TCP port and send and receive characters via udp. If you have a patched version of netcat which activates telnet remote echo and single char transfer, then you can use the following options to step up a netcat redirector to allow telnet on port 5555 to access the qemu port.
In order to do this you should press Ctrl-Alt-F1 to go to a terminal.
In Ubuntu type
Code:
sudo vi /etc/X11/xorg.conf
and edit the file. If you aren't familiar with vi then google it for instructions but simply put you need to press 'i' to go into insert mode, make the changes and when you have finished press 'escape' and type
Code:
:wq!
which will write the changes and quit.
You can then press Ctrl-Alt-F7 to go back to the GUI and then Ctrl-Alt-backspace to restart the Xserver.
Hopefully it will work fine at 1024x768. You can keep changing the xorg.conf until it breaks.
Best of luck...
Can't I just edit the xorg.conf file through a text editor? If not, why?
Thanks!
You can't just open it up in gedit or mousepad natively because it's a locked system file. You need to edit the file with superuser privileges, and to do that, you need the terminal. If you were able to open it, you still won't be able to save it.
Secondly, if you follow Unknown_User's advice and use Ctrl+Alt+F1, you'd have to mess around with some extra variables to make the graphical editor show up.
It's easy enough just to edit it in the terminal. If you don't like Vim or emacs, just use Nano.
You can't just open it up in gedit or mousepad natively because it's a locked system file. You need to edit the file with superuser privileges, and to do that, you need the terminal. If you were able to open it, you still won't be able to save it.
Secondly, if you follow Unknown_User's advice and use Ctrl+Alt+F1, you'd have to mess around with some extra variables to make the graphical editor show up.
It's easy enough just to edit it in the terminal. If you don't like Vim or emacs, just use Nano.
~$sudo nano /etc/X11/xorg.conf
That's what I do. Hope this helped.
Hi, I noticed that earlier. Vim was a little foreign, so I will try nano. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.