fixing a bunch of broken stuff I think

This commit is contained in:
Chris Cochrun 2022-02-25 14:16:41 -06:00
parent 0dbc3ead0e
commit 8bace887a2
1551 changed files with 299 additions and 57481 deletions

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>This is a thread to get answers for all your questions about *NIX desktop configuration! Feel free to share your setups here and ask for advice. In short, you can make any on-topic comment, in any format you like, and by using any host. We hope this gives new users a chance to get some help with any problems they&#39;re having and more experienced users a chance to show off their knowledge by helping those in need.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/AutoModerator"> /u/AutoModerator </a> <br/> <span><a href="https://www.reddit.com/r/unixporn/comments/q52p24/weekly_workshop_20211010/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/q52p24/weekly_workshop_20211010/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I switched from Vim to Emacs a few months ago. The actual editing part I picked up pretty quickly. But since day 1 I&#39;ve been trying to get a config for Emacs that works for me and it&#39;s like I&#39;m playing bug/unexpected weirdness whack a mole.</p> <p>- Getting LSP support in particular has been particularly frustrating - remote LSPs don&#39;t work, have to fix paths, frames don&#39;t work correctly on Mac, icons get rendered as bogus unicode characters in the terminal.</p> <p>- Getting TRAMP to not freeze my emacs all the time has been frustrating. Quite frankly it&#39;s a heaping pile compared to VSCode&#39;s remote server. It&#39;s slow. You&#39;re lucky if it works with the feature you want, and when it doesn&#39;t work it just destroys the entire emacs instance requiring a force quit.</p> <p>- Getting projectile/treemacs/tramp/etc. to work in sync on my project folders has been frustrating. All of these tools were built by different people and some of them have code for the others and some of them don&#39;t.</p> <p>- Terrible and unintuitive window system. I constantly have to override the default behavior to stop compilation/terminal/helper buffers from doing the wrong thing when they open.</p> <p>- MacOS versions crash or create blank frames etc when full screened. Pixel rendering is weird. You have like three projects to get emacs to work on a Mac. On Linux the support is obviously better but I have to have separate configs loaded on each platform just to patch Mac to work.</p> <p>Just today I tried to find a plugin to make tabs look ok since today was the first time I tried tabs and they looked terrible and didn&#39;t fit the gnome theme I was using. So I got centaur. Then I tried to open a tab again and it opened a centaur tab and one of the ugly tabs... like wtf.</p> <p>Overall I&#39;ve spent tons and tons of time trying to make emacs work for me. I like the IDEA of it. It has plugins that I like much better than the ones I was using with Vim. I like the major/minor mode system and elisp. But I&#39;m spending more time at work trying to get my editor to do what I need it to do than actually getting work on my project done.</p> <p>I&#39;m willing to listen to advice. Please do not recommend spacemacs, doom emacs, or someone else&#39;s emacs spin. I do not want to use someone else&#39;s emacs or vim configs. I just want my configs to work and emacs to act in a sane way by default.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/SEgopher"> /u/SEgopher </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/r0tyth/about_to_declare_emacs_bankruptcy_before_i_lose/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/r0tyth/about_to_declare_emacs_bankruptcy_before_i_lose/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>How are you setting up Python for Emacs?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/cog1tar3"> /u/cog1tar3 </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/rutoj7/how_to_setup_python3_with_emacs/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/rutoj7/how_to_setup_python3_with_emacs/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I&#39;m trying to set up Plymouth to get a splash screen at boot. Following the Arch wiki I only get a blank screen at boot.</p> <p>This is what my config looks like:</p> <p>Plymouht-git and gdm-plymouth installed.</p> <p>Initramfs generated with mkinitcpio -p linux-zez</p> <p>/etc/mkinitcpio.conf</p> <blockquote> <p>MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm) </p> <p>BINARIES=() </p> <p>FILES=() </p> <p>HOOKS=(systemd sd-plymouth autodetect keyboard keymap modconf block filesystems fsck)</p> </blockquote> <p>Boot loader systemd-boot, /boot/loader/entries/arch.conf</p> <blockquote> <p># Created by: archinstall </p> <p># Created on: 2021-11-25_11-40-06 </p> <p>title Arch Linux </p> <p>linux /vmlinuz-linux-zen </p> <p>initrd /intel-ucode.img </p> <p>initrd /initramfs-linux-zen.img </p> <p>options root=PARTUUID=3be00121-6166-bb4d-b5e1-d2e2768002da rw quiet splash loglevel=3 vga=current rd.systemd.show_status=false rd.udev.log_level=3 vt.global_cursor_default=0 nvidia-drm.modeset=1</p> </blockquote> <p>&#x200B;</p> <p>/etc/plymouth/plymouthd.conf</p> <blockquote> <p># Set your plymouth configuration here. </p> <p>[Daemon] </p> <p>Theme=spinfinity </p> <p>ShowDelay=0 </p> <p>DeviceTimeout=8</p> </blockquote> <p>&#x200B;</p> <p>Kernel modesetting seems to be working. Not exactly sure how to confirm this 100% but I can run Wayland on Nvidia proprietary drivers. Modules are loaded too:</p> <blockquote> <p>lsmod | grep nvidia </p> <p>nvidia_drm 73728 4 </p> <p>nvidia_uvm 2551808 0 </p> <p>nvidia_modeset 1155072 7 nvidia_drm </p> <p>nvidia 36982784 351 nvidia_uvm,nvidia_modeset</p> </blockquote> <p>&#x200B;</p> <p>dmesg | grep drm:</p> <blockquote> <p>[ 0.000000] Command line: initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img root=PARTUUID=3be00121-6166-bb4d-b5e1-d2e2768002da rw quiet splash loglevel=3 vga=current rd.systemd.show_status=false rd.udev.log_level=3 vt.global_cursor_default=0 nvidia-drm.modeset=1 </p> <p>[ 0.033862] Kernel command line: initrd=\intel-ucode.img initrd=\initramfs-linux-zen.img root=PARTUUID=3be00121-6166-bb4d-b5e1-d2e2768002da rw quiet splash loglevel=3 vga=current rd.systemd.show_status=false rd.udev.log_level=3 vt.global_cursor_default=0 nvidia-drm.modeset=1 </p> <p>[ 0.894204] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver </p> <p>[ 1.814419] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 0 </p> <p>[ 2.651076] systemd[1]: Starting Load Kernel Module drm... </p> <p>[ 2.657363] systemd[1]: <a href="mailto:modprobe@drm.service">modprobe@drm.service</a>: Deactivated successfully. </p> <p>[ 2.657512] systemd[1]: Finished Load Kernel Module drm.</p> </blockquote> <p>Glxinfo says direct rendering is enabled.</p> <p>I don&#39;t see anything unusual in journalctl nor dmesg. Let me know if you want to have a look and I&#39;ll post the output.</p> <p>So, do you have any ideas why it&#39;s not working? Have I missed something?</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/TQ-R"> /u/TQ-R </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r2xll2/help_with_plymouth_no_splash/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r2xll2/help_with_plymouth_no_splash/">[comments]</a></span>

View file

@ -1 +0,0 @@
is an exquisitely powerful, free game engine. One of my favorite aspects of Godot is that its editor was created with Godot itself! And indeed, it's an excellent showcase of how the engine could be used for building a great GUI program. But as excellent as the editor is, including the code editor for the bespoke scripting language GDScript, as an Emacs user it doesn't quite fit into my workflow. Thankfully, Godot has support for the , so I'm able to use Emacs in my game development workflow. In this post I'll describe what's required to do this, and how it compares to the stock Godot editor.

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/q706pn/oc_auto_color_a_c_header_for_automatic_color/"> <img src="https://external-preview.redd.it/f8SB4pRs5C5nr0Q_rFtsWRceascSPxKCyh2mYr3hUHk.jpg?width=320&amp;crop=smart&amp;auto=webp&amp;s=3553a1e10a06fd0ac50b9fc6a6c21fe346c29184" alt="[OC] Auto Color: a C header for automatic color theme generation" title="[OC] Auto Color: a C header for automatic color theme generation" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/makuto9"> /u/makuto9 </a> <br/> <span><a href="https://www.youtube.com/watch?v=jQufMPkD7yU">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/q706pn/oc_auto_color_a_c_header_for_automatic_color/">[comments]</a></span> </td></tr></table>

View file

@ -1,10 +0,0 @@
<p>The most useful keybinding is <code class="language-plaintext highlighter-rouge">C-c w w</code>, or <code class="language-plaintext highlighter-rouge">(+workspace/switch-to)</code>.</p>
<p>This command prompts you a list of workspaces to choose from. I use Ivy for autocompletion, so I can type any workspace name. If there is a match, it goes to the workspace. Otherwise it creates a new workspace with the name.</p>
<p>Another useful commands is <code class="language-plaintext highlighter-rouge">C-c w d</code>, or <code class="language-plaintext highlighter-rouge">(+workspace/display)</code> which lists the existing workspaces. But I use it less often than <code class="language-plaintext highlighter-rouge">C-c w w</code> because it can show the same list with autocompletion.</p>
<p>Finally, you can set up Doom to <a href="https://github.com/hlissner/doom-emacs/issues/314">show workspace name in
modeline</a>.</p>
<p><em>Note: You need to enable <a href="https://github.com/hlissner/doom-emacs/blob/develop/modules/ui/workspaces/README.org">Doom ui:workspaces</a> to get the above working</em>.</p>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I am trying to move &#39;R/x86_64-pc-linux-gnu-library/4.1/...&#39; somewhere else because it is clogging my home directory. The fact is I don&#39;t know how to move it so it doesn&#39;t just reaper by itself or R just stops working... Please help ^^</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/douhan_wicht"> /u/douhan_wicht </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/rcwaog/trying_to_move_homer_folder_elsewhere/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/rcwaog/trying_to_move_homer_folder_elsewhere/">[comments]</a></span>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/potwre/awesomewm_blue_space_action/"> <img src="https://preview.redd.it/nzi5co5u3pn71.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=99ef3805ec2514592d3e7761a835a8bf5d8154aa" alt="[AwesomeWM] Blue Space Action" title="[AwesomeWM] Blue Space Action" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/PigwithDrums"> /u/PigwithDrums </a> <br/> <span><a href="https://i.redd.it/nzi5co5u3pn71.png">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/potwre/awesomewm_blue_space_action/">[comments]</a></span> </td></tr></table>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Hi, I have 2 Arch linux computers with newer Intel CPUs which I recently updated all packages, including the kernel (to 5.14 I believe). Now all usb ports on both computers are broken, devices plugged into them do not even receive power. USB devices work on those computers when in BIOS or booted into Windows (one of them is dual boot).</p> <p>I have a 3rd Arch linux computer, a very old embedded AMD system. It is running the latest packages and kernel without issue.</p> <p>Troubleshooting this is nearly impossible since I cannot use keyboard or mouse, and I did not have ssh enabled on either of them. This problem is also present on the latest live USB, however I was able to get an older (september) live usb working albeit with usb error messages. From that live usb I chrooted into one of the machines and installed the LTS kernel, however that does not appear to solve the issue either.</p> <p>Specs:</p> <p>Computer 1:</p> <p>Intel i9-9900T</p> <p>32GB RAM</p> <p>nvme 500gb primary ssd</p> <p>Computer 2:</p> <p>Intel i9-???? (forgot and cannot boot)</p> <p>64GB RAM</p> <p>nvme 2tb primary ssd</p> <p>Computer 3:</p> <p>Old embedded AMD 1.0GHz Athlon</p> <p>16GB RAM</p> <p>&#x200B;</p> <p>Some of the errors I am receiving:</p> <pre><code>xhci_hcd 0000:00:14.0: xhci host controller not responding, assume dead xhci_hcd 0000:00:14.0: HC died, cleaning up usb 1-3.1: device not accepting address 13, error -108 usb 1-3-port1: couldn&#39;t allocate usb device </code></pre> <p>&#x200B;</p> <p>Edit: I have resolved the problem. I had a webcam on the KVM which apparently malfunctioned. For whatever reason this caused serious problems with the usb handling in the newer kernel on these newer Intel motherboards. After removing the webcam and rebooting, usb works as expected and there are no more dmesg errors.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/archthrowaway123456"> /u/archthrowaway123456 </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/r5t67e/multiple_arch_computers_all_usb_ports_broken/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/r5t67e/multiple_arch_computers_all_usb_ports_broken/">[comments]</a></span>

View file

@ -1,5 +0,0 @@
<p>This is another post that discusses a talk from <a href="https://emacsconf.org/2021/">EmacsConf 2021</a>. This one, by Karl Voit, is about the Org-mode markup language. Org markup <a href="https://karl-voit.at/2017/09/23/orgmode-as-markup-only/">is superior to its competitors</a>—sorry Markdowners, you know it is—but suffers from the fact that its strongly tied to Emacs. Part of the problem is that the name “Org-mode” is used both for the markup language and for the implementation of the Emacs package that includes the language and much more.</p>
<p>Voits suggestion, as discussed in his talk <a href="https://karl-voit.at/2021/11/27/orgdown/">The use of Org mode syntax outside of GNU/Emacs</a>, is to consider the markup language as a separate entity and rename it to Orgdown to avoid confusion between the language and its implementation in Emacs. In addition to his post about Orgdown, you can watch his <a href="https://emacsconf.org/2021/talks/org-outside/">EmacsConf talk</a> about it.</p>
<p>He has more to say, of course, than just, “Hey, lets rename the Org-mode markup language.” His proposition is well thought-out and already supported by a repository on <a href="https://gitlab.com/publicvoit/orgdown">GitLab</a> with documentation. His video is just over 12 minutes and definitely worth watching if you have any interest in the Org-mode language even if you arent an Emacs user. Its also enjoyable to watch because it has excellent production values.</p>
<p>There has been some pushback on his proposal but most of it seems to be borderline <a href="https://irreal.org/blog/?p=10103">ankle biting</a> about his choice of name, “Orgdown”. Theres a lot more to his proposal than a name, of course, so be sure to read or watch what that proposal is before you make up your mind about it.</p>
<p>As an Emacs user, none of this is vital to me but I <i>do</i> think its a good idea and that it could provide a much needed standard lightweight markup language. Markdown, of course, was intended to fill that roll but it has splintered into several dialects. Voits suggestion is intended to avoid that.</p>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I&#39;m using Arch Linux on my desktop and at seemingly random intervals my computer freezes. This machine is new, having only built it a few months ago. Ill break down my specs, the things ive already done, and potential theories. </p> <p><strong>SPECS</strong>:</p> <ul> <li>CPU: Ryzen 3 3200G</li> <li>GPU: RX 6600XT</li> <li>RAM: 2x16 DDR4 3200</li> <li>Storage: 500GB WD Blue NVME, 1TB 5200rpm HDD (used to boot windows for work).</li> <li>Kernel Version: 5.15.2</li> <li>DE (if potentially relevant): been using i3wm, but recently switched to KDE Plasma. </li> </ul> <p>The freezes occur at inconsistent points, but became more common after installing my GPU. The vast majority of freezes occur when my computer goes into sleep for a long period of time. Crashes, however, do occur while using the machine normally. Oddly, I don&#39;t believe I&#39;ve had it freeze while playing games. </p> <p><strong>What Ive looked into:</strong></p> <ul> <li><p><em>Overheating</em>: I rarely push my computer, but it is MicroATX and a cheap case. There isn&#39;t much room, so I figured overheating could be a likely contender. Unfortunately, while monitoring and logging temperatures - the freezes occurred with everything sitting around 30-40C.</p></li> <li><p><em>RAM or CPU usage</em>: Again, same as last time - when freezes occur both are no where near 100% use. </p></li> </ul> <p><strong>Current Theories:</strong></p> <ul> <li><p><em>Hibernation Issues:</em> My Windows drive also freezes when it goes into sleep for long periods of time. Ive disabled hibernation and sleep on windows to test this, but still had freezes. </p></li> <li><p><em>SWAP issue:</em> Perhaps I set up SWAP wrong?</p></li> <li><p><em>HDD Issue:</em> So as i mentioned, im using a rather old and cheap HDD to run windows from. The experience is awful in every way - but I&#39;m wondering if this drive is the problem. Whenever the computer goes to sleep for a long duration, it puts the drive to sleep. When it attempts to wake it up something goes wrong and the system doesnt know how to respond (or i failed to set up the adequate safety precautions lol). </p></li> </ul> <p>Any general advice on how to further deduce the actual causes would be great! If I can have a more specific scope then hopefully I can sole the underlying cause without disrupting anything else. In all likelihood, i think there are two causes: one freezing the computer when awaking from sleep, and one that passively occurs when the computer is in use.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/iSnortMold"> /u/iSnortMold </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/qz25q3/my_computer_freezes_fairly_regularly_how_can_i/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/qz25q3/my_computer_freezes_fairly_regularly_how_can_i/">[comments]</a></span>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>I got Arch installed and have set a username and password, but whenever I type in my password, it goes to a black screen (shows some code in the background sometimes), and then basically refreshes the login page and tells me to put my password in again, and then I just get stuck in an endless loop every time I enter my password. I&#39;d greatly appreciate any help I could get, thanks. Here&#39;s a screen recording for better reference.</p> <p><a href="https://reddit.com/link/rcw4rp/video/ht5cwx2d6m481/player">https://reddit.com/link/rcw4rp/video/ht5cwx2d6m481/player</a></p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/DrDannyT"> /u/DrDannyT </a> <br/> <span><a href="https://www.reddit.com/r/archlinux/comments/rcw4rp/arch_login_issues/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/archlinux/comments/rcw4rp/arch_login_issues/">[comments]</a></span>

View file

@ -1 +0,0 @@
<table> <tr><td> <a href="https://www.reddit.com/r/unixporn/comments/ra91uo/awesomewm_default_dwm_themed_awesome_also/"> <img src="https://preview.redd.it/k48vazfcrx381.png?width=640&amp;crop=smart&amp;auto=webp&amp;s=400cb4a4b3b4f3fc76aa736b9ad25842b489c9e2" alt="[AwesomeWM] default dwm themed awesome, also wallpapers are bloat" title="[AwesomeWM] default dwm themed awesome, also wallpapers are bloat" /> </a> </td><td> &#32; submitted by &#32; <a href="https://www.reddit.com/user/SideInner5201"> /u/SideInner5201 </a> <br/> <span><a href="https://i.redd.it/k48vazfcrx381.png">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/unixporn/comments/ra91uo/awesomewm_default_dwm_themed_awesome_also/">[comments]</a></span> </td></tr></table>

View file

@ -1 +0,0 @@
<!-- SC_OFF --><div class="md"><p>Using <a href="https://github.com/tpope/vim-surround">vim-surround</a>, if you have the text</p> <pre><code>you say hello world and i say it back ^ </code></pre> <p>...with your cursor on the character the carat indicates, then enter <code>ys2aw&quot;</code>, you end up with the line</p> <pre><code>you say &quot;hello world&quot; and i say it back </code></pre> <p>However, in Emacs, when <a href="https://github.com/emacs-evil/evil-surround">evil-surround</a> is enabled, if you take the same initial line and perform the same keystrokes, you instead end up with</p> <pre><code>you say &quot;hello world &quot;and i say it back </code></pre> <p>Is this a known issue, or expected behavior in some way?</p> <p>I stripped down my init.el so that the only lines in it require and enable <code>evil</code> and <code>evil-surround</code>, so I can&#39;t see how my configuration would be the problem. I wasn&#39;t able to find any reference to any similar issues on the Github though, which is surprising to me if other people are experiencing it; it seems like a pretty common command to run.</p> <p>If anyone else can reproduce this behavior, let me know so I know I&#39;m not crazy!</p> <p>Edit: </p> <p>A different means of achieving the same effect as desired is referenced in this issue: <a href="https://github.com/emacs-evil/evil-surround/issues/25">#25</a></p> <p>Also, after reading <a href="https://vimhelp.org/motion.txt.html#iw">TFM</a> and understanding how the <code>aw</code> and <code>iw</code> motions work, I agree with <a href="/u/bugamn">/u/bugamn</a> that <code>evil-surround</code> has the most consistent behavior; since I like homogeneity (I always enable <code>evil-want-Y-yank-to-eol</code>), I don&#39;t really feel the need to raise an issue. If anyone else finds this irksome though, feel free to copy the text of this post to your heart&#39;s content if you <em>do</em> want to raise one.</p> </div><!-- SC_ON --> &#32; submitted by &#32; <a href="https://www.reddit.com/user/summetria"> /u/summetria </a> <br/> <span><a href="https://www.reddit.com/r/emacs/comments/q7lsfd/inconsistency_between_evilsurround_and_vimsurround/">[link]</a></span> &#32; <span><a href="https://www.reddit.com/r/emacs/comments/q7lsfd/inconsistency_between_evilsurround_and_vimsurround/">[comments]</a></span>