You are not logged in.

#1 2014-05-03 21:22:08

davidshore
Member
Registered: 2014-01-18
Posts: 3

/etc/sysctl.d/ config file not being applied

I have (as suggested by the wiki) the following in /etc/sysctl.d/50-mouse.conf:

# Enable mouse button emulation
dev.mac_hid.mouse_button_emulation = 1
# Set 2nd button to 217 - the middle button of MX Revolution mouse.
dev.mac_hid.mouse_button2_keycode = 217

It's purpose is to get my middle mouse button working. It has worked until recently, when I updated my packages with

pacman -Syu

After a reboot, /proc/sys/dev/mac_hid/mouse_button_emulation is 0 (it should be set to 1 by /etc/sysctl.d/50-mouse.conf). If I do

sysctl --system

it changes to 1 like it should be and the mouse button works as expected (until the next reboot). The same thing goes for /proc/sys/dev/mac_hid/mouse_button2_keycode.

How can I figure out why these values aren't being set at startup? Is there a log I can view for clues?

Offline

#2 2014-05-03 22:10:40

cacplate
Member
Registered: 2013-08-30
Posts: 14

Re: /etc/sysctl.d/ config file not being applied

did pacman create a new file and made a pacsave file? If it did, you probably have to remodify the new one.

Offline

#3 2014-05-03 22:14:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,582
Website

Re: /etc/sysctl.d/ config file not being applied

What is the output of

# systemctl status systemd-sysctl.service

sysctl isn't used by systemd, it has it's own binary.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2014-05-05 04:26:11

davidshore
Member
Registered: 2014-01-18
Posts: 3

Re: /etc/sysctl.d/ config file not being applied

cacplate wrote:

did pacman create a new file and made a pacsave file? If it did, you probably have to remodify the new one.

No, I checked /etc/sysctl.d/50-mouse.conf. It has not been changed.

WorMzy wrote:

What is the output of

# systemctl status systemd-sysctl.service

sysctl isn't used by systemd, it has it's own binary.

Output is as follows:

● systemd-sysctl.service - Apply Kernel Variables
   Loaded: loaded (/usr/lib/systemd/system/systemd-sysctl.service; static)
   Active: active (exited) since Sun 2014-05-04 23:15:47 CDT; 44s ago
     Docs: man:systemd-sysctl.service(8)
           man:sysctl.d(5)
  Process: 192 ExecStart=/usr/lib/systemd/systemd-sysctl (code=exited, status=0/SUCCESS)
 Main PID: 192 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/systemd-sysctl.service

Offline

#5 2014-05-05 05:03:12

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: /etc/sysctl.d/ config file not being applied

Just a wild guess, but since it it ultimately a wireless mouse, maybe it is not actually being found/synced to the machine until after the systemd-sysctl.service is run?  If that is the case, maybe a udev rule might be better suited for this scenario.

Offline

Board footer

Powered by FluxBB