Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia optimus x11
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Mon Jun 01, 2015 6:03 pm    Post subject: nvidia optimus x11 Reply with quote

Hello, I have a dell precision m4600. My system has gentoo setup with the notion windows manager. My .xinitrc starts notion and when I run startx everything works.

I have tried installing xdm with the changes described in the nvidia guide here https://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops and xdm starts up. When I log in the screen goes blank then comes back to the login screen.

I have tried installing slim but I am getting a blank screen. My guess is because the xrandr commands are not getting executed.

Can someone explain how to get either one of these display managers working? For xdm I may have it configured wrong. I thought it would just use whatever I have in .xinitrc but maybe not. For slim I think it just needs the xrandr commands put somewhere but I don't know where. Any help would be awesome!
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Mon Jun 01, 2015 6:54 pm    Post subject: Reply with quote

The first thing I would try is installing xdm and your dm without any tweaks. If it just works, leave it at that.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Mon Jun 01, 2015 8:40 pm    Post subject: Reply with quote

Thanks for the reply. I have emerged both slim and xdm with no configuration changes as you said. Both come up with blank screens now. At least with xdm I didn't get a blank screen when I followed the wiki page.

Since xdm is starting and I know the windows manager starts when I use startx do you think I may have xdm configured wrong? It seems like it doesn't execute .xinitrc at all.
Back to top
View user's profile Send private message
fabalthazar
n00b
n00b


Joined: 26 May 2015
Posts: 21
Location: France

PostPosted: Tue Jun 02, 2015 8:23 am    Post subject: Reply with quote

Hello,
I see the name of the topic containing "optimus". Perhaps you could be interested in using bumblebee along with bbswitch to be able to switch between the integrated Intel GPU and the discrete Nvidia one.
This works quite out of the box in my Asus Optimus configuration.
Of course, if you want to use only the Nvidia card always on, your way looks correct.

Concerning slim, I use it but AFAIR, it needs a little configuration step otherwise I get a black screen. When I installed my xfce4 DE, I followed this about slim: https://wiki.gentoo.org/wiki/Xfce/Guide#Graphical_login
Sure it needs to be adapted with your window manager.
Then it is important to update the environment variables:
Code:
root #env-update && source /etc/profile

then logout and in again.
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Tue Jun 02, 2015 11:36 am    Post subject: Reply with quote

I was able to get xdm working. After setting up xdm to start without a blank screen using this guide. I did the following

  • copy /etc/X11/xinit/xinitrc to ~/.xinitrc
  • make ~/.xinitrc executable
  • create ~/.xsession
  • add export XSESSION=notion to the top of the file
  • add any other commands you need to execute
  • add ~/.xinitrc as the final command


After reading the documentation I figured out that xdm doesn't run .xinitrc it runs .xsession. If it is not present it tries to run a some defaults (twm, xterm, xclock, and xsm) because XSESSION was never set. I found an error in .xsession-error stating that xsm was not found. After installing it I could get into the failsafe gui (twm, xterm, xclock, xsm). But setting up notion for my user was tricky.

In .xsession you are expected to set the XSESSION variable and then run .xinitrc. Or you can open the window manager in .xsession. I couldn't figure out how to get .xsession to run /etc/X11/xinit/xinitrc without copying it to my home directory. This could be because /etc/X11/xinit/xinitrc is not executable.

So now I have a system with xdm and notion. I am using lxpanel in notion to make things look like a standard desktop.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum