Package Details: system76-driver 20.04.88-1

Git Clone URL: https://aur.archlinux.org/system76-driver.git (read-only, click to copy)
Package Base: system76-driver
Description: Universal driver for System76 computers
Upstream URL: https://github.com/pop-os/system76-driver
Licenses: GPL-2.0-or-later
Submitter: ava1ar
Maintainer: yochananmarqos
Last Packager: yochananmarqos
Votes: 23
Popularity: 0.001353
First Submitted: 2013-08-18 05:41 (UTC)
Last Updated: 2024-03-19 01:10 (UTC)

Dependencies (35)

Required by (0)

Sources (4)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 16 Next › Last »

rko commented on 2018-08-08 15:03 (UTC)

Arch recently updated to Python 3.7, so the patches need to be fixed. It also might be a good idea to explicitly require Python 3.7 so that the issue is caught when things are upgraded to 3.8 in the future.

diff --git a/PKGBUILD b/PKGBUILD
index fabb8ef..9755d00 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ url="https://github.com/pop-os/system76-driver"
 license=('GPL')
 install="${pkgname}.install"
 depends=(
-       'python>=3.6'
+       'python=3.7'
        'python-cffi'
        'python-dbus'
        'python-evdev'
@@ -38,14 +38,13 @@ source=(
        'gtk.patch'
        'cli.patch'
        'system76-firmware.desktop.patch')
-sha1sums=(
-  'f017b987b0a55b1a21a1b45b167c8366f2134aa8'
-  'a9dc6ba42eda0de7214b9c86e3914667354c142f'
-  '8e6a69a2610fdd3a21c06210e2ad183abe83430b'
-  'ea8d53a80a26eb05b367f27996c8ce715aafba1e'
-  'bf0c37a6226858c768e8ce2c9c3c3801aef14c0e'
-  '92f0de2acea6ac69c36378c7139fb84a7eaf7842'
-  'ae28859f3f3ea58eff6ee3e0728bc0e70246af31')
+sha1sums=('f017b987b0a55b1a21a1b45b167c8366f2134aa8'
+          'a9dc6ba42eda0de7214b9c86e3914667354c142f'
+          '8e6a69a2610fdd3a21c06210e2ad183abe83430b'
+          '6bcb0161644c4f8de1ef408a4f170fc781d8bd75'
+          'b6f1aa9aa6120e3b741d746f051e92e39a26939f'
+          '92f0de2acea6ac69c36378c7139fb84a7eaf7842'
+          'ae28859f3f3ea58eff6ee3e0728bc0e70246af31')


 build() {
diff --git a/galu1.patch b/galu1.patch
index b0db8ee..3b0e03a 100644
--- a/galu1.patch
+++ b/galu1.patch
@@ -1,5 +1,5 @@
---- a/usr/lib/python3.6/site-packages/system76driver/daemon.py 2014-12-21 15:51:54.899761693 -0500
-+++ b/usr/lib/python3.6/site-packages/system76driver/daemon.py 2014-12-21 15:52:43.496397059 -0500
+--- a/usr/lib/python3.7/site-packages/system76driver/daemon.py 2014-12-21 15:51:54.899761693 -0500
++++ b/usr/lib/python3.7/site-packages/system76driver/daemon.py 2014-12-21 15:52:43.496397059 -0500
 @@ -58,7 +58,6 @@
      'bonx7',
      'bonx8',
@@ -8,8 +8,8 @@
      'gazp9',
      'gazp9b',
      'kudp1',
---- a/usr/lib/python3.6/site-packages/system76driver/model.py  2014-04-21 12:43:25.000000000 -0400
-+++ b/usr/lib/python3.6/site-packages/system76driver/model.py  2014-05-03 23:20:20.837535955 -0400
+--- a/usr/lib/python3.7/site-packages/system76driver/model.py  2014-04-21 12:43:25.000000000 -0400
++++ b/usr/lib/python3.7/site-packages/system76driver/model.py  2014-05-03 23:20:20.837535955 -0400
 @@ -85,6 +85,7 @@
          'K8N-DL': 'wilp2',
          'KFN5-D SLI': 'wilp3',
diff --git a/gtk.patch b/gtk.patch
index 913fadb..33b5738 100644
--- a/gtk.patch
+++ b/gtk.patch
@@ -1,5 +1,5 @@
---- a/usr/lib/python3.6/site-packages/system76driver/gtk.py    2014-05-10 00:19:43.755367421 -0400
-+++ b/usr/lib/python3.6/site-packages/system76driver/gtk.py    2014-05-10 00:19:48.515363743 -0400
+--- a/usr/lib/python3.7/site-packages/system76driver/gtk.py    2014-05-10 00:19:43.755367421 -0400
++++ b/usr/lib/python3.7/site-packages/system76driver/gtk.py    2014-05-10 00:19:48.515363743 -0400
 @@ -100,10 +100,10 @@
              self.details.set_text('\n'.join(lines))
              if self.action_runner.needed:

burningserenity commented on 2018-08-08 12:13 (UTC)

Turns out my issue had nothing to do with this package. I simply neglected to install headers for my running kernel.

burningserenity commented on 2018-08-08 00:42 (UTC)

I suppose my comment was misleading. I meant my keyboard backlight keys don't work. The screen backlight worked for me OOTB.

ebobby commented on 2018-08-04 05:17 (UTC) (edited on 2018-08-04 05:19 (UTC) by ebobby)

@burningserenity @b0n

That particular service is not really needed for the Oryx Pro 4 (not sure about the Galago though, but if its a recent revision I would guess it's the same situation).

That service is basically a hack for older models where apparently some nvidia cards broke the backlight settings and some hacks were needed.

If you use the Intel driver in your xorg you can use xbacklight just fine. I use the modesetting driver instead though, so I can support booting into my nvidia card as well (a la Pop! OS) and that breaks xbacklight. I use i3 and I simply configure the backlight hotkeys myself and use light (aur) to modify the backlight. I think things like Gnome use DBUS and access /sys/class/backlight directly.

You need the kernel driver for the airplane hotkey (and others) to work. That package is system76-dkms. Make sure you have your specific kernel headers so it can actually install the driver. For the vainilla kernel you have to install the linux-headers, for zen you need linux-zen-headers, etc.

b0n commented on 2018-08-04 02:37 (UTC) (edited on 2018-08-04 02:40 (UTC) by b0n)

i have the same problem as @burningserentiy but i have a Galago Pro (galp3)

Aug 03 19:34:56 glados system76-daemon[7278]: 2018-08-03 19:34:56,864  INFO  {'hci0': True, 'phy0': True} != None
Aug 03 19:34:56 glados system76-daemon[7278]: 2018-08-03 19:34:56,866  ERROR  Error in AirplaneMode.update():
Aug 03 19:34:56 glados system76-daemon[7278]: Traceback (most recent call last):
Aug 03 19:34:56 glados system76-daemon[7278]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 282, in update
Aug 03 19:34:56 glados system76-daemon[7278]:     sync_led(self.fd, airplane_mode)
Aug 03 19:34:56 glados system76-daemon[7278]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 246, in sync_led
Aug 03 19:34:56 glados system76-daemon[7278]:     write_int(fd, 0xD9, new)
Aug 03 19:34:56 glados system76-daemon[7278]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 189, in write_int
Aug 03 19:34:56 glados system76-daemon[7278]:     os.pwrite(fd, buf, address)
Aug 03 19:34:56 glados system76-daemon[7278]: OSError: [Errno 22] Invalid argument

2018-08-03 19:36:26,977  INFO  **** Process start at monotonic time 560.896989759
2018-08-03 19:36:26,978  INFO  None
2018-08-03 19:36:26,978  INFO  model: 'galp3'
2018-08-03 19:36:26,978  INFO  Backlight hack not needed for 'galp3'

I have tried checking out older commits from the repository where it actually worked and it still spits out the same error. I do not understand why. My backlight is very low and it is incredibly annoying, i cannot change the backlight settings at all.

burningserenity commented on 2018-07-27 13:52 (UTC) (edited on 2018-07-27 14:14 (UTC) by burningserenity)

My backlight controls don't work on my Oryx Pro 4.

When I ran systemctl status system76.service I saw this error after the usual systemd info:

Jul 27 09:28:13 pew system76-daemon[642]: Traceback (most recent call last):
           └─642 /usr/bin/python3 /usr/lib/system76-driver/system76-daemon

Jul 27 09:28:13 pew system76-daemon[642]: Traceback (most recent call last):
Jul 27 09:28:13 pew system76-daemon[642]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 478, in run_firmware_acpi_interrupt
Jul 27 09:28:13 pew system76-daemon[642]:     ret.append(_run_firmware_acpi_interrupt(model, interrupt))
Jul 27 09:28:13 pew system76-daemon[642]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 470, in _run_firmware_acpi_interrupt
Jul 27 09:28:13 pew system76-daemon[642]:     gpe.run()
Jul 27 09:28:13 pew system76-daemon[642]:   File "/usr/lib/python3.6/site-packages/system76driver/daemon.py", line 461, in run
Jul 27 09:28:13 pew system76-daemon[642]:     print('disable', file = f)
Jul 27 09:28:13 pew system76-daemon[642]: OSError: [Errno 22] Invalid argument
Jul 27 09:28:13 pew system76-daemon[642]: 2018-07-27 09:28:13,980  INFO  ESS DAC autoswitch not needed for 'oryp4'
Jul 27 09:28:13 pew system76-daemon[642]: 2018-07-27 09:28:13,980  INFO  DPCD PWM fix not needed for 'oryp4'

Also, this didn't seem to install the system76-backlight user service. I don't have anything at /usr/share/applications/system76-driver-backlight.desktop

On further inspection, that file was just not executable. So I tried the file in the Exec line: /usr/lib/system76-driver/system76-backlight-daemon Which output:

2018-07-27 10:09:59,099  INFO  **** Process start at monotonic time 166.039246331
2018-07-27 10:09:59,099  INFO  None
2018-07-27 10:09:59,099  INFO  model: 'oryp4'
2018-07-27 10:09:59,099  INFO  Backlight hack not needed for 'oryp4'

electrickite commented on 2018-07-06 04:58 (UTC)

Thanks for the tips, ebobby and rko. 18.04.25-2 should resolve the issues with missing dependencies and the firmware updater.

ebobby commented on 2018-07-05 23:52 (UTC)

@ava1ar Since I bought an Oryx Pro 4 a week ago I had to make this work a few days ago (I wanted to contact you then but I was busy).

I have a version here that you may be interested in:

https://github.com/ebobby/system76-driver/commit/607d871c75042c9171f29185d3bfa04a7043950d

The firmware daemon was taken out but I took the liberty of keeping (and adding) the desktop and policy files because I added an AUR package for the firmware daemon so they still provide the functionality needed:

https://aur.archlinux.org/packages/system76-firmware-daemon/

rko commented on 2018-07-05 13:44 (UTC)

I think "python-systemd" should be added as a dependency to this package. Looking at the journalctl logs for "system76", it was failing due to "ModuleNotFoundError: No module named 'systemd'", and installing this package fixed this for me.

ava1ar commented on 2018-07-05 11:14 (UTC)

Updated to 18.04.25. Please note, automated firmware updated was removed from 18.04 version.