guix.org_archive 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. # -*- mode: org -*-
  2. Archived entries from file /home/joshua/prog/cheatsheets/guix.org
  3. * DONE complete linode cookbook for Chris Webber
  4. CLOSED: [2020-08-07 Fri 13:16]
  5. :PROPERTIES:
  6. :ARCHIVE_TIME: 2021-05-24 Mon 18:26
  7. :ARCHIVE_FILE: ~/prog/cheatsheets/guix.org
  8. :ARCHIVE_OLPATH: things I can do
  9. :ARCHIVE_CATEGORY: guix
  10. :ARCHIVE_TODO: DONE
  11. :END:
  12. :LOGBOOK:
  13. - State "DONE" from "TODO" [2020-08-07 Fri 13:16]
  14. - State "TODO" from [2020-08-07 Fri 12:43]
  15. :END:
  16. * DONE use dismail.de for DNS over TLS
  17. CLOSED: [2020-09-09 Wed 21:21]
  18. :PROPERTIES:
  19. :ARCHIVE_TIME: 2021-05-24 Mon 18:27
  20. :ARCHIVE_FILE: ~/prog/cheatsheets/guix.org
  21. :ARCHIVE_OLPATH: things I can do
  22. :ARCHIVE_CATEGORY: guix
  23. :ARCHIVE_TODO: DONE
  24. :END:
  25. :LOGBOOK:
  26. - State "DONE" from [2020-09-09 Wed 21:21]
  27. :END:
  28. https://dismail.de/info.html#dns
  29. * DONE set up a landing page for https://bordeaux.guix.gnu.org/
  30. CLOSED: [2021-06-08 Tue 04:10]
  31. :PROPERTIES:
  32. :ARCHIVE_TIME: 2021-06-09 Wed 04:16
  33. :ARCHIVE_FILE: ~/prog/cheatsheets/guix.org
  34. :ARCHIVE_OLPATH: things I can do
  35. :ARCHIVE_CATEGORY: guix
  36. :ARCHIVE_TODO: DONE
  37. :END:
  38. that will show people how to set up the signing key.
  39. :LOGBOOK:
  40. - State "DONE" from "TODO" [2021-06-08 Tue 04:10]
  41. - State "TODO" from [2021-06-07 Mon 18:14]
  42. :END:
  43. https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/nginx/html/bordeaux/index.html
  44. * DONE bug report for guix system linux 5.4.20 not loading kernel modules
  45. CLOSED: [2020-06-01 Mon 19:35]
  46. :PROPERTIES:
  47. :ARCHIVE_TIME: 2022-04-11 Mon 10:52
  48. :ARCHIVE_FILE: ~/prog/cheatsheets/guix.org
  49. :ARCHIVE_CATEGORY: guix
  50. :ARCHIVE_TODO: DONE
  51. :END:
  52. :LOGBOOK:
  53. - State "DONE" from [2020-06-01 Mon 19:35]
  54. :END:
  55. ** final bug report
  56. From: Joshua Branson <jbranso@dismail.de>
  57. To: bug-guix@gnu.org
  58. Subject: Something appears to disable linux kernel modules from loading.
  59. --text follows this line--
  60. Hello!
  61. tl;dr
  62. Something is causing linux 5.4.20 not to load kernel modules at boot.
  63. Perhaps the culprit is the shepherd 0.7.0.
  64. So I recently reconfigured guix on my ThinkPad T400.
  65. #+BEGIN_SRC sh
  66. $ guix describe
  67. Generation 32 Feb 18 2020 16:53:46 (current)
  68. jmacs 1a401c8
  69. repository URL: https://notabug.org/jbranso/guix-packages.git
  70. branch: master
  71. commit: 1a401c81ed0617e2ca2fa37ec8caa9ca96032b7a
  72. guix 97c6670
  73. repository URL: https://git.savannah.gnu.org/git/guix.git
  74. branch: master
  75. commit: 97c6670ef79bbf5e82dece2e837ed73b6462da01
  76. #+END_SRC
  77. After I rebooted sway refused to start. The sway error message said
  78. #+BEGIN_SRC sh
  79. $ sway
  80. [backend/backend.c:339] Failed to open any DRM device.
  81. [sway/server.c] Unable to create backend.
  82. #+END_SRC
  83. So sway is not starting. I believe this is because my i915 intel
  84. driver is not loaded. I know this is the case, because the text on my
  85. virtual console is LARGE. $ sudo modprobe i915 loads the required
  86. driver. And I can now log into sway.
  87. However, my ethernet driver is not loaded.
  88. #+BEGIN_SRC sh
  89. $ lsmod | grep e1000e
  90. #+END_SRC
  91. #+BEGIN_SRC sh
  92. $ sudo modprobe e1000e
  93. #+END_SRC
  94. Then I ran ifconfig, and indeed I now have an ethernet device.
  95. #+BEGIN_SRC sh :results output :exports both
  96. $ ifconfig
  97. enp0s25 Link encap:Ethernet HWaddr 00:1C:25:9A:37:BA
  98. inet addr:172.16.113.199 Bcast:172.16.115.255 Mask:255.255.252.0
  99. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
  100. RX packets:505 errors:0 dropped:0 overruns:0 frame:0
  101. TX packets:570 errors:0 dropped:0 overruns:0 carrier:0
  102. collisions:0 txqueuelen:1000
  103. RX bytes:143838 TX bytes:60886
  104. Interrupt:20 Memory:fc100000-fc120000
  105. lo Link encap:Local Loopback
  106. inet addr:127.0.0.1 Bcast:0.0.0.0 Mask:255.0.0.0
  107. UP LOOPBACK RUNNING MTU:65536 Metric:1
  108. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  109. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  110. collisions:0 txqueuelen:1000
  111. RX bytes:0 TX bytes:0
  112. #+END_SRC
  113. And I now have an internet connection.
  114. #+BEGIN_SRC sh :results output :exports both
  115. joshua@dobby ~/prog/org$ ping -c 3 gnu.org
  116. PING gnu.org (209.51.188.148): 56 data bytes
  117. 64 bytes from 209.51.188.148: icmp_seq=0 ttl=56 time=35.610 ms
  118. 64 bytes from 209.51.188.148: icmp_seq=1 ttl=56 time=35.635 ms
  119. 64 bytes from 209.51.188.148: icmp_seq=2 ttl=56 time=35.501 ms
  120. --- gnu.org ping statistics ---
  121. 3 packets transmitted, 3 packets received, 0% packet loss
  122. round-trip min/avg/max/stddev = 35.501/35.582/35.635/0.058 ms
  123. #+END_SRC
  124. But I do not have a working touchpad. I guess my touchpad driver is
  125. not loaded. I'm not certain what driver my touchpad uses, so for now
  126. I am doing with out.
  127. I then went and asked for some tips on irc. HappyEnt claimed the
  128. problem for him was commit 205c1e0.
  129. janneke was also having issues with kernel modules not being
  130. automatically booted. He said that this commit worked for him:
  131. ef2b1d2c8b60776bf66573b0c810474e9e1a4abd. He then said that commit
  132. d39885a8a9e0e03c2bf6277d475d384168bba642 also worked, which implied
  133. the problem was not the linux version 5.4.20, but possibly the
  134. shepherd.
  135. I tried reconfiguring with commit
  136. d39885a8a9e0e03c2bf6277d475d384168bba642, to see if that solved my issue.
  137. #+BEGIN_SRC sh :results output :exports both
  138. guix time-machine --commit=d39885a8a9e0e03c2bf6277d475d384168bba642 -- system reconfigure
  139. #+END_SRC
  140. #+BEGIN_SRC sh
  141. $ uname -r
  142. 5.4.20-gnu
  143. #+END_SRC
  144. janneke's commit did solve my issue. After rebooting, sway starts, I
  145. have internet, and my touchpad and sound work.
  146. Man I love guix system. It really does work smoothly, even when you
  147. have problems. So thanks for making a great GNU/Linux distro!
  148. Thanks Joshua
  149. * DONE trying to get my mouse to work
  150. CLOSED: [2016-08-22 Mon 14:40]
  151. :PROPERTIES:
  152. :ID: 44c09910-eb2c-450a-9d64-22e5b3db36cb
  153. :ARCHIVE_TIME: 2022-04-11 Mon 10:53
  154. :ARCHIVE_FILE: ~/prog/cheatsheets/guix.org
  155. :ARCHIVE_CATEGORY: guix
  156. :ARCHIVE_TODO: DONE
  157. :END:
  158. :LOGBOOK:
  159. - State "DONE" from [2016-08-22 Mon 14:40]
  160. :END:
  161. I started using sway, and my mouse issue went away.
  162. http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20433
  163. Ricardo suggests blacklisting the usbkdb module.
  164. modeprobe.blacklist=usbkdb
  165. (kernel-arguments '("modprobe.blacklist=usbkbd"))
  166. I need to run
  167. #+BEGIN_SRC sh :results output
  168. $ guix pull
  169. # guix pull
  170. #+END_SRC
  171. ;; Edit configuration.scm to add ‘kernel-arguments’ to the config:
  172. ;; (operating-system
  173. ;; …
  174. ;; (kernel-arguments '("modprobe.blacklist=usbkbd")))
  175. ** getting tapping to work swell
  176. How do you list all of your input devices?
  177. https://wiki.archlinux.org/index.php/Libinput#Configuration
  178. #+BEGIN_SRC sh :results output :exports both
  179. xinput
  180. #+END_SRC
  181. #+RESULTS:
  182. #+begin_example
  183. ⎡ Virtual core pointer id=2 [master pointer (3)]
  184. ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
  185. ⎜ ↳ bcm5974 id=12 [slave pointer (2)]
  186. ⎣ Virtual core keyboard id=3 [master keyboard (2)]
  187. ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
  188. ↳ Power Button id=6 [slave keyboard (3)]
  189. ↳ Video Bus id=7 [slave keyboard (3)]
  190. ↳ Power Button id=8 [slave keyboard (3)]
  191. ↳ Sleep Button id=9 [slave keyboard (3)]
  192. ↳ Built-in iSight: Built-in iSigh id=10 [slave keyboard (3)]
  193. ↳ Apple Inc. Apple Internal Keyboard / Trackpad id=11 [slave keyboard (3)]
  194. #+end_example
  195. And it looks like #3 is my keyboard.
  196. Here's a question for ya. How do you know what driver is powering each input device?
  197. #+BEGIN_SRC sh :results output :exports both :dir /var/log
  198. cat Xorg.0.log | grep "Using input driver"
  199. #+END_SRC
  200. #+RESULTS:
  201. : [ 67.176] (II) Using input driver 'evdev' for 'Power Button'
  202. : [ 67.252] (II) Using input driver 'evdev' for 'Video Bus'
  203. : [ 67.253] (II) Using input driver 'evdev' for 'Power Button'
  204. : [ 67.254] (II) Using input driver 'evdev' for 'Sleep Button'
  205. : [ 67.255] (II) Using input driver 'evdev' for 'Built-in iSight: Built-in iSigh'
  206. : [ 67.256] (II) Using input driver 'evdev' for 'Apple Inc. Apple Internal Keyboard / Trackpad'
  207. : [ 67.325] (II) Using input driver 'synaptics' for 'bcm5974'