You are not logged in.

#1 2011-02-11 00:40:53

aluser
Member
Registered: 2011-01-16
Posts: 119

[SOLVED] Setting 1366x768 console resolution with KMS

Hello everyone,

I've had no luck getting this resolution to work with the nvidia propietary driver. I've been doing some research and It appears 1366x768 is not supported by nvidia drivers but with nouveau and KMS.

I'm using the tool fbset to change the resolution but it's only temporary. I've also added video=1366x768@60 to the kernel command line but to no avail.

my kernel log

Feb 11 01:19:21 archws kernel: [drm] Initialized drm 1.1.0 20060810
Feb 11 01:19:22 archws kernel: nouveau 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Feb 11 01:19:22 archws kernel: nouveau 0000:01:00.0: setting latency timer to 64
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Detected an NV40 generation card (0x046100a3)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: ... appears to be valid
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: BIT BIOS found
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Bios version 05.72.22.49
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: TMDS table version 1.1
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: TMDS table script pointers not stubbed
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: BIT table 'd' not found
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Found Display Configuration Block version 3.0
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Raw DCB entry 0: 01000300 00000028
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Raw DCB entry 1: 02011310 00000028
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Raw DCB entry 2: 01011312 00000000
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Raw DCB entry 3: 020223f1 00c0c080
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: DCB connector table: VHER 0x30 5 10 2
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0:   0: 0x00000000: type 0x00 idx 0 tag 0xff
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0:   1: 0x00002130: type 0x30 idx 1 tag 0x08
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0:   2: 0x00000210: type 0x10 idx 2 tag 0xff
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0:   3: 0x00000211: type 0x11 idx 3 tag 0xff
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0:   4: 0x00000213: type 0x13 idx 4 tag 0xff
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 0 at offset 0xD25F
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 1 at offset 0xD58E
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 2 at offset 0xDB2C
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 3 at offset 0xDCA7
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 4 at offset 0xDF00;;;
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: 1 available performance level(s)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: 0: memory 648MHz core 450MHz fanspeed 100%
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: c: memory 391MHz core 199MHz
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Detected 128MiB VRAM
Feb 11 01:19:22 archws kernel: [TTM] Zone  kernel: Available graphics memory: 1027304 kiB.
Feb 11 01:19:22 archws kernel: [TTM] Initializing pool allocator.
Feb 11 01:19:22 archws kernel: mtrr: type mismatch for c0000000,10000000 old: write-back new: write-combining
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: 64 MiB GART (aperture)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Saving VGA fonts
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Allocating FIFO number 0
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 0
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 3 on vga encoder (output 0)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 3 on vga encoder (output 1)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 3 on tmds encoder (output 2)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 3 on TV encoder (output 3)
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: allocated 1366x768 fb: 0x49000, bo ffff880079dd9400
Feb 11 01:19:22 archws kernel: Console: switching to colour frame buffer device 170x48
Feb 11 01:19:22 archws kernel: fb0: nouveaufb frame buffer device
Feb 11 01:19:22 archws kernel: drm: registered panic notifier
Feb 11 01:19:22 archws kernel: [drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on minor 0
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: Allocating FIFO number 1
Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
Feb 11 01:19:23 archws kernel: [drm] nouveau 0000:01:00.0: Setting dpms mode 0 on vga encoder (output 0)
Feb 11 01:19:23 archws kernel: [drm] nouveau 0000:01:00.0: Output VGA-1 is running on CRTC 0 using output A
Feb 11 01:19:42 archws kernel: lo: Disabled Privacy Extensions
Feb 11 01:19:49 archws kernel: chrome-sandbox (3038): /proc/3036/oom_adj is deprecated, please use /proc/3036/oom_score_adj instead.
Feb 11 01:23:47 archws kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_free: freeing fifo 1
Feb 11 01:23:53 archws kernel: [drm] nouveau 0000:01:00.0: Allocating FIFO number 1
Feb 11 01:23:53 archws kernel: [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
Feb 11 01:23:58 archws kernel: lo: Disabled Privacy Extensions

any ideas?
EDIT: just tried using video=DVI-I-1:1366x768@60 still doesnt work

# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg

# DEVICE NAME CONVERSIONS
#
#  Linux           Grub
# -------------------------
#  /dev/fd0        (fd0)
#  /dev/sda        (hd0)
#  /dev/sdb2       (hd1,2)
#  /dev/sda3       (hd0,3)
#

# Timeout for menu
set timeout=5

# Set default boot entry as Entry 0
set default=0

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda3 ro video=DVI-I-1:1366x768@60
initrd /kernel26.img
}

## (1) Windows
#menuentry "Windows" {
#set root=(hd0,3)
#chainloader +1
#}

Last edited by aluser (2011-02-26 04:21:58)

Offline

#2 2011-02-11 08:42:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Nvidia proprietary drivers don't support the regular KMS, so you won't get 'fancy' resolutions this way - only the vesa ones.
You can try https://wiki.archlinux.org/index.php/Uvesafb or some other framebuffer.

Looks like it's running fine for nouveau:

Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: allocated 1366x768 fb: 0x49000, bo ffff880079dd9400

What resolution do you get?

Offline

#3 2011-02-11 08:47:15

Awebb
Member
Registered: 2010-05-06
Posts: 6,285

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Is there a way to switch the driver when switching the tty? I still did not understand how drivers work on linux.

Online

#4 2011-02-11 08:56:36

jOaNbE
Member
Registered: 2011-01-20
Posts: 20

Re: [SOLVED] Setting 1366x768 console resolution with KMS

aluser wrote:

I've been doing some research and It appears 1366x768 is not supported by nvidia drivers but with nouveau and KMS.

That statement is a bit general. 1366x768@60 works fine with nvidia (http://www.archlinux.org/packages/extra/x86_64/nvidia/ for me) on my crappy GeForce 230 M. Your card "should' have the same driver according to nvidia. Have you tried nvidia-all from the AUR? It had some build problems but its working now.

Offline

#5 2011-02-11 08:56:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Awebb wrote:

Is there a way to switch the driver when switching the tty? I still did not understand how drivers work on linux.

I don't think so, although some people wanted to use nouveau in the console and nvidia drivers in X.

But this has little to do with OP's problem.

Offline

#6 2011-02-11 09:03:38

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Awebb wrote:

Is there a way to switch the driver when switching the tty? I still did not understand how drivers work on linux.

Sort of, but it's extremely unpractical.

@jOaNbE: He wants to use 1366x768 at the console. If he wants to use the nvidia blob for X, then he can only use vesafb or uvesafb for the console. In which case available resolutions depend on the card's vbios. And in many cases widescreen resolutions are not in the vbios of nvidia cards.

Last edited by Gusar (2011-02-11 09:06:32)

Offline

#7 2011-02-11 17:46:42

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] Setting 1366x768 console resolution with KMS

karol wrote:

Nvidia proprietary drivers don't support the regular KMS, so you won't get 'fancy' resolutions this way - only the vesa ones.
You can try https://wiki.archlinux.org/index.php/Uvesafb or some other framebuffer.

Looks like it's running fine for nouveau:

Feb 11 01:19:22 archws kernel: [drm] nouveau 0000:01:00.0: allocated 1366x768 fb: 0x49000, bo ffff880079dd9400

What resolution do you get?

From Grub to the login screen its still at 640x480, but when X is started and then I switch back to console its 1366x768( but I only got the 1366x768 after I used fesab tool)

joanbe wrote:

That statement is a bit general. 1366x768@60 works fine with nvidia (http://www.archlinux.org/packages/extra/x86_64/nvidia/ for me) on my crappy GeForce 230 M. Your card "should' have the same driver according to nvidia. Have you tried nvidia-all from the AUR? It had some build problems but its working now.

I'm using my crappy 7300 LE, but after running the command vbinfo in the grub console there is no 1366x768 resolution. Are you sure you are not referring to the X resolution?

Offline

#8 2011-02-11 23:03:41

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Hello again everyone,

I've taken a different approach. This time I modified the grub file in /etc/default added this GRUB_GFXMODE=1366x768x32
and ran grub-mkconfig. The output file looks a lot different now, but after rebooting my monitor gives me an error instead, and grub2 wont even appear. To fix this I have to change  GRUB_GFXMODE=1366x768x32 to any of the resolutions listed under vbeinfo. Still no luck.

EDIT: I was able to uninstall some previous nvidia drivers and now its working except its not working as I hoped.

The grub screen is still not 1366x768, and it will only change to 1366x768 after 4~5 seconds after grub is loaded.
Again, whatever is in GRUB_GFXMODE= is what will appear first, in this case I have set GRUB_GFXMODE=640x480 because its one of the only few resolutions that works.

Last edited by aluser (2011-02-12 01:37:45)

Offline

#9 2011-02-24 22:01:23

aluser
Member
Registered: 2011-01-16
Posts: 119

Re: [SOLVED] Setting 1366x768 console resolution with KMS

Hello again everyone, I finally got nouveau to load the resolution without delay. If anyone is interested just follow this instructions under the Early start heading. Just putting this out here for future reference and for help others with their resolution problems.

Offline

Board footer

Powered by FluxBB