Comments (18)
Please format your logs using code blocks (https://guides.github.com/features/mastering-markdown/), or use a pastebin (https://pastebin.com/).
It looks like the issue is that the alias service display-manager.service is not actually linked to your display manager.
What is are your distribution and desktop environment ?
from optimus-manager.
Please format your logs using code blocks (https://guides.github.com/features/mastering-markdown/), or use a pastebin (https://pastebin.com/).
Here pastebin: https://pastebin.com/sYau9Dxw
It looks like the issue is that the alias service display-manager.service is not actually linked to your display manager.
What is are your distribution and desktop environment ?
I use openbox on Arch Linux.
from optimus-manager.
Ah so no desktop environment then. Do you use a login manager ? (GDM, SDDM, LightDM) ?
from optimus-manager.
If the ones you mentioned don't come with other packages then I don't think so. I didn't remember install any of them, and I have to type username and password at terminal to login. There appears no fancy login screen.
from optimus-manager.
Yeah, you don't have a login manager, that's why the daemon cannot restart it (login manager = display manager).
Please read this section of the README : https://github.com/Askannz/optimus-manager#i-do-not-use-a-display-manager-i-use-startx-or-xinit
from optimus-manager.
I dont understand the part "do it from TTY". Does it mean I have to switch card before I login openbox?
from optimus-manager.
First, you have to add the line /usr/bin/optimus-manager_Xsetup to your .xinitrc so that this script is executed when X starts
So I just put this line on .xinitrc or I need something like exec or export before it?
from optimus-manager.
I dont understand the part "do it from TTY". Does it mean I have to switch card before I login openbox?
Actually you can run optimus-manager --switch <mode>
anytime, but to apply the change you need to stop the X server (i.e. logout from Openbox), run /usr/bin/optimus-manager-setup --setup-start
and log back in.
So I just put this line on .xinitrc or I need something like exec or export before it?
No, just put the line.
from optimus-manager.
I think I did it. When I login the text size smaller than before and I can run nvidia-settings without error. But when I check by using you command glxinfo | grep "server glx vendor string"
, the result is SGI? Is there another way to check?
from optimus-manager.
What's the output of nvidia-smi
? You should see a list of processes there. If X or Xorg is in the list, it means it's running on the Nvidia GPU.
from optimus-manager.
Is that it?
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 803 G /usr/lib/Xorg 61MiB |
+-----------------------------------------------------------------------------+
from optimus-manager.
Yep, it's there, you should be good then.
It worries me that glxinfo
does not report Nvidia, though...because I rely on that in the client program to check the current GPU in use.
Are you able to run any OpenGL program ? Like for instance, the program glxgears
from the package mesa-demos
? (it's a simple OpenGL demo)
from optimus-manager.
Are you able to run any OpenGL program ? Like for instance, the program glxgears from the package mesa-demos ? (it's a simple OpenGL demo)
Yeah, paste the command in the terminal and I saw 3 gears running.
I have another problem. After reboot and login I can see any on the screen. I think the screen is off. I had this problem before when I tried to use bumblebee. My built-in screen was off and the second screen which was connected via HDMI port was on (kind of like one of you trouble shoot on the main page). I know what caused it. It's the /etc/X11/xorg.conf.d/10-optimus-manager.conf file, if I delete this one then my built-in screen back on, but it's very inconvenient way to fix. Do you have any suggestion?
Update:
It worries me that glxinfo does not report Nvidia, though...because I rely on that in the client program to check the current GPU in use.
I tried optimus-manager --print-mode
and it returned Intel. You really need to fix it.
from optimus-manager.
I know what caused it. It's the /etc/X11/xorg.conf.d/10-optimus-manager.conf file, if I delete this one then my built-in screen back on
Well this file is auto-generated by optimus-manager to tell Xorg which GPU to use. If you delete it then it's as if you are not using optimus-manager at all.
Does this problem happens not matter which GPU you use ?
from optimus-manager.
Does this problem happens not matter which GPU you use ?
No, it doesn't. If I run all of your steps to switch to nvidia then everything is fine, but if I do nothing and login as usual then I got a black screen.
And I can't enable optimus-manager so it can run at startup.
$ systemctl enable optimus-manager.service
The unit files have no installation config (WantedBy, RequiredBy, Also, Alias
settings in the [Install] section, and DefaultInstance for template units).
This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
4) In case of template units, the unit is meant to be enabled with some
instance name specified.
You see, either the way (complete steps to switch to nvidia or delete file so buit-in screen can back on) costs me time to login.
from optimus-manager.
Ah yes, not being able to enable the daemon is a bug indeed, thanks for reporting that. I'll fix it for the next release.
You see, either the way (complete steps to switch to nvidia or delete file so buit-in screen can back on) costs me time to login.
Well, I suggest you use an alias to run those commands automatically. Like if you use startx
for instance, you can set up an alias to run
/usr/bin/optimus-manager-setup --setup-start; startx; /usr/bin/optimus-manager-setup --setup-stop
all at once.
from optimus-manager.
Is there any conflict between optimus-manager and laptop-mode-tools/tlp?
I don't know why but from yesterday it doens't work anymore, and I also did update nvidia driver to 4.15.
from optimus-manager.
Is there any conflict between optimus-manager and laptop-mode-tools/tlp?
As far as I know, there's no reason to be any conflict. Unless maybe they are doing something broken with PCI power management, but in that case it's a bug you should report to them.
from optimus-manager.
Related Issues (20)
- Project updates HOT 18
- xorg files prevents the desktop environment from starting, for some reason. HOT 1
- Optimus manager not wroking properly HOT 9
- Cannot start optimus-manager-qt HOT 1
- laptop display stays black after switching to nvidia mode HOT 1
- black screen when switching to integrated HOT 3
- script before switching to new mode HOT 2
- SDDM scaling no longer works
- When I switch to Nvidia, the built-in screen of the laptop stays black but I can still input my password or use monitors plugged to a video output HOT 9
- Hyprland HOT 1
- Default Startup GPUs don't work HOT 1
- [Failed] to start NVIDIA Persistence Daemon. HOT 1
- Nvidia mode significantly slower than other modes HOT 1
- Update gdm-prime to gnome 46 HOT 4
- My system freezes HOT 4
- "coarse" is not documented in the config file HOT 1
- Best power management for Ryzen 5 Gtx1650? HOT 2
- why no wayland support? HOT 2
- ERROR: the active card is "integrated" but it should be "nvidia". HOT 1
- Unable to run optimus-manager: Python ModuleNotFoundError HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from optimus-manager.