Solved

reset X screen resolution

Posted on 2014-12-25
8
180 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 87

Expert Comment

by:rindi
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 87

Expert Comment

by:rindi
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 1

Author Comment

by:jmarkfoley
Comment Utility
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 87

Assisted Solution

by:rindi
rindi earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
rindi's suggestion provided the clue. My comments shows the detail of the solution
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Linux operating system 12 63
linux crontab output 3 36
mobaxterm not able to change directory 28 41
Anti-virus for Linux Server 15 84
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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 …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now