How to configure xrandr properly?
Hey!
I'm a linux noob, but I've already used Ubuntu and Backtrack in the past. I installed Kali 64 bit 2016.2 with Windows 10 as dual boot. I could fix the gray and the black screen problems, but I can't get the solution to set the right screen resolution. I've searched on the net, but I'm perfectly lost. If I run Kali with USB, it works properly. I see 1366x786 LVDS-1 is set and VGA-1, HDMI-1, DP-1 are disconnected. But my main system shows: xrandr -q xrandr: Failed to get size of gamma for output default Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768 default connected 1024x768+0+0 0mm x 0mm 1024x768 76.00* cvt 1366 768 60 # 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync xrandr: Failed to get size of gamma for output default xrandr --output default --mode 1368x768_60.00 --gamma 0:0:0 xrandr: cannot find mode 1368x768_60.00 Please help me, I would like to use linux! |
It's likely that you have a framebuffer driver in use. Check Xorg.0.log for the active graphics driver. If unsure, run the following
Code:
egrep "LoadModule|UnloadModule" /var/log/Xorg.0.log Code:
inxi -Gxz Code:
/sbin/lspci -nnk|grep '\[03' -A3 |
personally, i prefer to use a graphical frontend to xrandr, e.g. arandr (with drag'n'drop functionality :-).
|
Information
1) egrep "LoadModule|UnloadModule" /var/log/Xorg.0.log
[ 32.357] (II) LoadModule: "glx" [ 32.426] (II) LoadModule: "modesetting" [ 32.436] (II) LoadModule: "fbdev" [ 32.448] (II) LoadModule: "vesa" [ 32.455] (II) LoadModule: "fbdevhw" [ 32.456] (II) UnloadModule: "modesetting" [ 32.456] (II) LoadModule: "fb" [ 32.474] (II) LoadModule: "shadow" [ 32.475] (II) UnloadModule: "vesa" [ 34.618] (II) LoadModule: "libinput" 2) inxi -Gxz Graphics: Card-1: Intel 3rd Gen Core processor Graphics Controller bus-ID: 00:02.0 Card-2: NVIDIA GK208M [GeForce GT 720M] bus-ID: 01:00.0 Display Server: X.org 1.19.2 drivers: fbdev (unloaded: modesetting,vesa) tty size: 80x24 Advanced Data: N/A for root 3) /sbin/lspci -nnk|grep '\[03' -A3 bash: /sbin/lspci: No such file or directory ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4) arandr I installed arandr, it sees default instead of LVDS-1 too. |
The posted output confirms that the fbdev (basic framebuffer) driver is loaded. This limits the display resolution to 1024x768. I'm surprised that the nouveau driver was not loaded for this NVIDIA chipset. Are you using the 'nomodeset' boot parameter perhaps?
Code:
cat /proc/cmdline BTW, the lspci command is probably located somewhere else in your distro. If it is in the path, you could just do lspci.... Code:
lspci -nnk |
Quote:
|
Thanks for helping me out!
I could fix it. The solution was that I removed nomodeset with verbose. :) The Win2Grub works fine with no parameters or with "quiet splash". I was using BackTrack for 2 years long, and it was the only installed OS on my notebook. I shouldn't do complicated linux tasks, just use Internet and do programming - that is why I think that I'm still a noob. Now I installed Kali because I'm doing a course which uses it. I could do everything without Kali on Win10 during the course until now, but I felt I should use Kali for try out what the course does under Kali. Thanks a lot for solving it! :) |
To "use internet" as root is a big no-no. I hope you created a user for your everyday tasks?
|
$ xrandr --output LVDS-1 --mode 1366x768 --panning 1366x768 --primary --gamma 1:1:1 --brightness 1
That should be a close to "defaults" as necessary. You probably don't want 0:0:0 as that would be solid black. $ xrandr --output HDMI-0 --brightness 0.65 --gamma 1.6:1.46:1.53 Is what I use for an HP IPS display that is quite horrid at 1:1:1. |
Quote:
|
Quote:
Thanks for the idea. :) |
All times are GMT -5. The time now is 01:28 AM. |