Solved

reset X screen resolution

Posted on 2014-12-25
8
189 Views
Last Modified: 2015-01-03
I have a Sony VIAO VGN-P530H mini-netbook with recently installed Slackware 14.1. In the KDE desktop I changed the display resolution to make thing appear bigger. Unfortunately doing so put all the action button below the screen and the desktop doesn't scroll. Now I have no menu bar and can't change anything.

How can I ...

1) Change my resolution back from the command line?

2) scroll/pan my KDE desktop (I'm a very KDE newbie)
0
Comment
Question by:jmarkfoley
  • 4
  • 3
8 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 40517856
You can set the resolution within a konsole using xrandr. But generally in KDE the display's settings you change via the KDE's "Configure Desktop" don't stay after a reboot. So a simple reboot should probably return you to the default settings.

To use xrandr just enter xrandr and you'll see what mode is being used, and a list of further modes supported. It also shows you whichoutput port is being used.

xrandr --help shows you what commands are available, and xrandr command --help, what options a command has.
0
 
LVL 44

Expert Comment

by:Darr247
ID: 40517936
If you can get to the command line, run
hwinfo --framebuffer

which should tell you the modes your display supports.

Quicker might be to add ", gfxpayload=auto" to the end of the 'kernel' line in grub at boot time, which should set it to use the LCD's native resolution. Tip: hold down a Shift key while booting (as soon as the BIOS screen is done) to show the grub 2 menu if it doesn't appear for you.

For 2), being able to pan past the edge of the visible screen is dependent on both the driver and the GPU used.  It might simply not be possible with your Sony's graphics adapter.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 40520547
rindi: > ... generally in KDE the display's settings you change via the KDE's "Configure Desktop" don't stay after a reboot.

Nope - the settings persist after reboot

Darr247: Don't have hwinfo. Using lilo not grub

I assume X must be running before I can use xrandr, right? Of course, I cannot get to a command line from the X desktop because everything is off the screen and I can't get to any desktop option. I can get to the computer via ssh and run commands from that session. Running xrandr from there just gives me "Can't open display", probably because this is not a X session.

How do I specifiy the console display, or can I do that at all from an ssh session? I've tried -d 0, -d 1, ... but just get "Can't open display 0", etc.

Seems like this shouldn't be an irreversible error. Is there some Xorg config file I can update/restore?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 88

Expert Comment

by:rindi
ID: 40520551
Yes, for xrandr X needs to run. How come you are still using lilo on a modern OS?

Maybe check for a file /etc/X/xorg.conf and if it exists, delete it.
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 40521304
rindi: > Maybe check for a file /etc/X/xorg.conf and if it exists, delete it.

There is no xorg.conf. and /etc/X11/xorg.conf.d is empty. Where are these screen settings kept?!

> How come you are still using lilo on a modern OS?

lilo.conf makes it easy for me to have multiple Linux boot configurations one of which I use to connect the console screen buffer to a DisplayLink VGA. As EExpert gheist said in http://www.experts-exchange.com/OS/Linux/Q_28574919.html, this is "Easy with lilo, a bit harder with grub, rocket science with grub 2". Note that I am NOT using the DisplayLink VGA boot option for this problem.

> Yes, for xrandr X needs to run.

OK, X is running on the console. Can I not reference the console X display from another session on this computer?
0
 
LVL 88

Assisted Solution

by:rindi
rindi earned 500 total points
ID: 40521450
Try another user account. If there is no xorg.conf file the settings are probably stored per user. A new account should give you the defaults.
0
 
LVL 1

Accepted Solution

by:
jmarkfoley earned 0 total points
ID: 40522944
Yes! It worked with another user account: normal screen. Therefore, the settings *are* stored per user. Solution: I went in the fooped user account (root) and deleted all X related files and directories:

rm  -r .config/ .dbus/ .gnupg/ .gstreamer-0.10/ .cache/ .gvfs/ .hplip/ .kde/ .thumbnails/ .local/ .xsession .Xauthority .xinitrc

I then did `startx` and the screen is back to normal. Thanks for the clue!
0
 
LVL 1

Author Closing Comment

by:jmarkfoley
ID: 40528912
rindi's suggestion provided the clue. My comments shows the detail of the solution
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to install Ubuntu 16 in DELL venue 8 pro 20 151
VMware Workstation 12 Player 16 75
How code a 301 redirect for folder files -> 1 file 2 40
Linux VM 6 89
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question