DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th August 2015
NaWi NaWi is offline
Fdisk Soldier
 
Join Date: Aug 2015
Location: Austria
Posts: 52
Default Inteldrm set / change resolution during boot ?

Hello !

I am new here / new to BSD. At the moment I have here a Lenovo ThinkPad W541 (i7, Intel and nVidia GPU) with OpenBSD 5.7 from May without updates or installed software. I can't provide a dmesg at the moment because I have no internet connection at the moment - urndis(4) doesn't support my Android Nexus 7 and, I had no time to try configuring the N5321 gw WWAN card using ucom(4).

OpenBSD works from boot till X (fvwm) without problems. The nVidia GPU is no topic because I know, there is no driver / binary blob in OpenBSD available and, I got the information, that the nVidia GPU is only useable if the ThinkPad is connected to a dock - which I don't have (it is also not possible to switch the GPU off using the BIOS).

Back to my question, after the boot prompt and some boot messages, the display resolution switched to the highest available. The first line after the switch was

Code:
inteldrm0: 2880x1620
under X it is possible to switch the resolution using

Code:
xrandr -q
xrandr -s ...
I found the information to switch off inteldrm using

Code:
config -ef /bsd
disable inteldrm
quit
reboot
which gives me back the default resolution in console but no working X (or not without a xorg.conf).

How / where can I configure a resolution for inteldrm which gives me a nice console / X size ?

Thanks for your answers.
Reply With Quote
  #2   (View Single Post)  
Old 7th August 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,984
Default

Hello, and welcome!

I happen to know someone who has a W541 and uses it with OpenBSD. He's not a member here, but I'll send him and Email and ask him to review your post and either join and reply directly or reply through me.
Reply With Quote
  #3   (View Single Post)  
Old 7th August 2015
NaWi NaWi is offline
Fdisk Soldier
 
Join Date: Aug 2015
Location: Austria
Posts: 52
Default

Thanks for your answer and your welcome !

All informations will help ... I will write it down for all if I get it to work as desktop.
Reply With Quote
  #4   (View Single Post)  
Old 7th August 2015
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Depending on how you start X, you can do something like this:
First, run xrandr by itself to see what outputs you have and what resolution they support.
Code:
/home/brian $ xrandr
Screen 0: minimum 8 x 8, current 2732 x 768, maximum 32767 x 32767
LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 309mm x 173mm
   1366x768      60.10*+
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94  
DP1 disconnected (normal left inverted right x axis y axis)
HDMI1 connected 1366x768+1366+0 (normal left inverted right x axis y axis) 760mm x 450mm
   1360x768      60.02 +
   1920x1080     50.00    24.00  
   1366x768      59.79* 
   1280x720      50.00  
   1440x576i     50.00  
   1024x768      75.08    70.07    60.00  
   1440x480i     59.94  
   800x600       72.19    75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       72.81    60.00    59.94  
   720x400       70.08  
VGA1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
Now, if you start X manually (via startx), you would add something like this to your ~/.xinitrc
If you start X via xdm, you can put it in /etc/X11/xdm/Xsetup_0
Code:
/usr/X11R6/bin/xrandr --output <your output name> --mode <resolution you want>
You can also substitute
Code:
--mode <resolution you want>
with
Code:
--auto
to let the display choose what it considers its optimal resolution.
You should prefer --mode to -s.

Console you are better off by changing font size.
Reply With Quote
  #5   (View Single Post)  
Old 8th August 2015
NaWi NaWi is offline
Fdisk Soldier
 
Join Date: Aug 2015
Location: Austria
Posts: 52
Default

Thanks for your answer.

For the console font size I tried section 7.5 from the FAQ's which doesn't worked. The problem is, that the console resolution is changed during boot from - I think - 640 x 480 (80x25) to 2880x1620 by the loaded inteldrm driver. Which is not bad because X workes out-of-the-box but in console round 25% on the right and left are not useable.

The perfect solution would be to set the reselution for inteldrm during boot to the default 80x25 - I think which is 640x480. For xdm and X there is no need to care because if the reselution is set for inteldrm, it is kept also for xdm and X as default. Don't know how the display / xdm treat this. For X the needed things (like a higher resolution but a lower resolution then the native and to use the scale option of xrandr to use the full display) I will put in the .xinitrc (so I have to backup only $HOME and not to think about a xorg.conf).
Reply With Quote
  #6   (View Single Post)  
Old 8th August 2015
NaWi NaWi is offline
Fdisk Soldier
 
Join Date: Aug 2015
Location: Austria
Posts: 52
Default

@ibara xrandr reports as name for the ThinkPad display
Code:
eDPI
never seen before.

@all I found in the FAQ point 5.8 which shows config(8). UKC shows for inteldrm flags 0x0 - is there any documentation about possible flags which can maybe used to change the resolution ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help with DNS resolution betweendayandnight OpenBSD General 0 13th July 2015 06:21 PM
Invalid Signature when trying to boot Ubuntu 14.04 (Dual Boot) bsd007 FreeBSD General 7 18th September 2014 12:37 PM
first install, first boot on netbsd, change password length wesley NetBSD General 0 26th August 2010 08:18 AM
Change consolle resolution unixbsd OpenBSD General 7 16th March 2009 01:08 PM
Dual-boot laptop won't boot OpenBSD after upgrade to 4.3 kbeaucha OpenBSD Installation and Upgrading 17 30th May 2008 02:40 PM


All times are GMT. The time now is 11:57 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick