Unable to run GreenWithEnvy

Hi. I have had some experience in Linux but using Manjaro for the first time. The OS is really good, quite happy with it at the moment. I can’t seem to run Green with envy in this…I tried
optirun gwe
And I got

[ 1359.014783] [ERROR]The Bumblebee daemon has not been started yet or the socket path /var/run/bumblebee.socket was incorrect.
[ 1359.014834] [ERROR]Could not connect to bumblebee daemon - is it running?

How do I fix this?

Is it running?
You need to answer that question.
Are you asking how to find that out?

Make sure to add yourself to the bumblebee group

sudo gpasswd -a [your_user] bumblebee

then activate the service

sudo systemctl enable bumblebeed.service

reboot and try again GreenWithEnvy.

How do i find that?

Did what you asked…with
optirun gwe
I am still getting the same error.
Running gwe gives

Traceback (most recent call last):
  File "/usr/bin/gwe", line 53, in <module>
    from gwe import __main__
  File "/usr/lib/python3.9/site-packages/gwe/__main__.py", line 52, in <module>
    locale.setlocale(locale.LC_ALL, locale.getlocale())
  File "/usr/lib/python3.9/locale.py", line 610, in setlocale
    return _setlocale(category, locale)
locale.Error: unsupported locale setting

What next?

Come on - please do some research
…how to activate/deactivate/start/stop a service and check whether it is running or not.

In this case, if the name of the service is correct in the example given by @XRaTiX

it would be:

sudo systemctl status bumblebeed.service

probably this check would also work without sudo
starting and stopping services … will not

check your locale settings?
check how you installed gwe
How did you install it?

I ran sudo systemctl status bumblebeed.service and this is what I got,

● bumblebeed.service - Bumblebee C Daemon
     Loaded: loaded (/usr/lib/systemd/system/bumblebeed.service; enabled; vendor preset: disabled)
     Active: activating (auto-restart) (Result: exit-code) since Sun 2021-07-04 23:42:02 IST; 2s ago
    Process: 3660 ExecStart=/usr/bin/bumblebeed --use-syslog (code=exited, status=1/FAILURE)
   Main PID: 3660 (code=exited, status=1/FAILURE)
        CPU: 5ms

My locale settings looks fine i.e., most parameters are set to en_IN
I install gwe from AUR, using yay.

Did you do this?

Also post what gpu drivers you have

mhwd -li

Yes, I did.
Output of mhwd -li

> Installed PCI configs:
--------------------------------------------------------------------------------
                  NAME               VERSION          FREEDRIVER           TYPE
--------------------------------------------------------------------------------
video-hybrid-amd-nvidia-prime            2020.11.30               false            PCI
           video-linux            2018.05.04                true            PCI


Warning: No installed USB configs!

Thats the reason,you are not using bumblebee drivers,you are using the newer official nvidia drivers,instead of optirun is prime-run,so you don’t need bumblebee at all,its a driver for older cards so no need to change anything.

1 Like

As @Nachlese suggested, I tweaked around with my locale settings…changed all profiles to en_US.UTF-8.
Then, using prime-run gwe i got,

/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en-US.UTF-8)

(gwe:3491): Gtk-WARNING **: 09:50:15.760: Locale not supported by C library.
	Using the fallback 'C' locale.
ERROR: NV-CONTROL missing!

Running nvidia-settings prints,

(process:3526): Gtk-WARNING **: 09:50:46.876: Locale not supported by C library.
	Using the fallback 'C' locale.

ERROR: Unable to load info from any available system

Should I try changing my locale settings? If so which one should change it to?

Output for locale is,

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_IN
LC_CTYPE="en-US.UTF-8"
LC_NUMERIC="en-US.UTF-8"
LC_TIME="en-US.UTF-8"
LC_COLLATE="en-US.UTF-8"
LC_MONETARY="en-US.UTF-8"
LC_MESSAGES="en-US.UTF-8"
LC_PAPER="en-US.UTF-8"
LC_NAME="en-US.UTF-8"
LC_ADDRESS="en-US.UTF-8"
LC_TELEPHONE="en-US.UTF-8"
LC_MEASUREMENT="en-US.UTF-8"
LC_IDENTIFICATION="en-US.UTF-8"
LC_ALL=en-US.UTF-8

Output of locale-a

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
POSIX
de_DE.utf8
en_IN
en_IN.utf8
en_US.utf8

I don’t know how this can have happened but:
all of your locales are wrong (spelled wrong)
instead of: en-US.UTF-8
it should be: en_US.UTF-8

… although
locale -a
says that you have german, US english and indian locales available

I suggest to check /etc/locale.gen
whether the right locales are uncommented there and how they are spelled
then re-generate your locales with
locale-gen

Then you likely need to re-login
and check the result.

There are quite a few threads here on the forum addressing locale issues - check them if the above doesn’t fully sort the issue for you.

1 Like