You are not logged in.

#1 2022-07-04 06:54:28

stjernestrom
Member
Registered: 2022-07-01
Posts: 5

[dwm] cannot toggle bluetooth, greyed out

i use arch linux on gnome, and i decided to try out dwm.
but when i log onto dwm from the display manager (i added dwm as an xsession as i use gdm and do not have experience with startx)
i cannot turn the bluetooth on/off in gnome-control-center or bluetoothctl
some devices remains connected if I connect them in gnome and login back to dwm. wifi and ethernet seems to work fine.
here's my dwm startup script (i copied it from xinitrc and added 3 lines in the end to start dwm)

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then







    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then







    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

~/.fehbg &
dwmclock &
exec dwm

kindly help me..

Offline

#2 2022-07-04 13:19:30

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [dwm] cannot toggle bluetooth, greyed out

Is the bluetooth service started? It might be auto activated by some gnomeisms and needs to be explicitly started/enabled with mor minimalist setups. Other than that is your DBUS session correct? Startup script looks good but what's the output of

echo $DBUS_SESSION_BUS_ADDRESS

Offline

#3 2022-07-04 13:56:17

stjernestrom
Member
Registered: 2022-07-01
Posts: 5

Re: [dwm] cannot toggle bluetooth, greyed out

the output of

echo $DBUS_SESSION_BUS_ADDRESS

was

unix:path=/run/user/1000/bus

EDIT: i am able to use the bluetoothctl to connect to devices. (i mentioned in the initial post that i couldn't) Now i see that the bluetooth.service is well up and running.

The only problem i seem to face is that i couldn't toggle it on the gnome-control-center when i'm in the dwm session. Is this supposed to be considered normal? What makes me wonder is that other controls like wifi work fine.

● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; >
     Active: active (running) since Mon 2022-07-04 13:05:00 IST; 6h ago
       Docs: man:bluetoothd(8)
   Main PID: 384 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 9278)
     Memory: 2.8M
        CPU: 124ms
     CGroup: /system.slice/bluetooth.service
             └─384 /usr/lib/bluetooth/bluetoothd

Jul 04 13:04:59 home-laptop bluetoothd[384]: Bluetooth daemon 5.64
Jul 04 13:05:00 home-laptop bluetoothd[384]: Starting SDP server
Jul 04 13:05:01 home-laptop bluetoothd[384]: Bluetooth management interfa>
Jul 04 13:04:58 home-laptop systemd[1]: Starting Bluetooth service...
Jul 04 13:05:00 home-laptop systemd[1]: Started Bluetooth service.

Offline

#4 2022-07-06 10:35:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,300

Re: [dwm] cannot toggle bluetooth, greyed out

Maybe, I don't use gnome but it's likely there's some gnome service that's somewhat of a hard dep here. E.g. the settings menu for bluetooth wants/needs to talk to a gnome-shell widget which isn't available when you aren't running the gnome-shell. Knowing GNOME this will likely be intentional and marked as wont fix were you to report that upstream or so. FWIW if you start gnome-control-center in a terminal do you get any info on what it looks for to determine whether to disable these toggles?

Offline

#5 2022-07-10 18:24:56

mjx
Member
From: Bangalore
Registered: 2021-08-29
Posts: 6
Website

Re: [dwm] cannot toggle bluetooth, greyed out

hi i had very same issue, i was able to resolve this by installing Linux-lts Kernel.
install bluez,bluez-utils and start bluetooth service.
and then unblock bluetooth using 'sudo rfkill unblock bluetooth' as mine was showing it was soft blocked.
now i was able to turn on in gnome control center.
reboot system once if not working.

Last edited by mjx (2022-07-10 19:15:25)

Offline

Board footer

Powered by FluxBB