• Activity
  • Votes
  • Comments
  • New
  • All activity
  • Showing only topics with the tag "linux". Back to normal view
    1. Does reformatting an ext4 partition fix bad sectors, and what are they anyway?

      My Linux desktop is having a bit of difficulty with bad sectors. Lately I've had to boot into recovery and run an fsck a few times to try to fix a problem where the OS drops into read-only mode at...

      My Linux desktop is having a bit of difficulty with bad sectors. Lately I've had to boot into recovery and run an fsck a few times to try to fix a problem where the OS drops into read-only mode at the drop of a hat. Today I tried copying some files from one directory to another and got the following error message:
      cp: error reading "foo/bar": Input/output error

      I've just booted into a live USB and run fsck /dev/sda1 -c and it fixed a load of bad sectors, but the above error message is still happening.

      A bit of googling tells me that this is down to bad sectors on the SSD, and I'm not really sure what that means. Is anybody able to enlighten me? And as a follow-up question, would reformatting the hard drive resolve the problem, or are there any other things I can try to fix it?

      9 votes
    2. NixOS Configuration for a VPS

      Since I took so long to reply to Tips to use NixOS on a server? by @simao, I decided to create a new topic to share my configs. Hopefully this is informative for anyone looking to do similar...

      Since I took so long to reply to Tips to use NixOS on a server? by @simao, I decided to create a new topic to share my configs. Hopefully this is informative for anyone looking to do similar things - I'll also gladly take critiques, since my setup is probably not perfect.

      First, I will share the output of 'lsblk' on my VPS:

      NAME      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
      vda       253:0    0   180G  0 disk  
      ├─vda1    253:1    0   512M  0 part  /boot
      └─vda2    253:2    0 179.5G  0 part  
        └─crypt 254:0    0 179.5G  0 crypt 
      

      That is, I use an unencrypted /boot partition, vda1, with GRUB 2 to prompt for a passphrase during boot, to unlock the LUKS encrypted vda2. I prefer to use ZFS as my file system for the encrypted drive, and LUKS rather than ZFS encryption. This is an MBR drive, since that's what my VPS provider uses, though UEFI would look the same. The particular way I do this also requires access through the provider's tools, and not ssh or similar. The hardware-configuration.nix file reflects this:

      Click to view the hardware configuration file
      # Do not modify this file!  It was generated by ‘nixos-generate-config’
      # and may be overwritten by future invocations.  Please make changes
      # to /etc/nixos/configuration.nix instead.
      { config, lib, pkgs, modulesPath, ... }:
      
      {
        imports =
          [ (modulesPath + "/profiles/qemu-guest.nix")
          ];
      
        boot.initrd.availableKernelModules = [ "aes_x86_64" "ata_piix" "cryptd" "uhci_hcd" "virtio_pci" "sr_mod" "virtio_blk" ];
        boot.initrd.kernelModules = [ ];
        boot.kernelModules = [ ];
        boot.extraModulePackages = [ ];
      
        fileSystems."/" =
          { device = "rpool/root/nixos";
            fsType = "zfs";
          };
      
        fileSystems."/home" =
          { device = "rpool/home";
            fsType = "zfs";
          };
      
        fileSystems."/boot" =
          { device = "/dev/disk/by-uuid/294de4f1-72e2-4377-b565-b3d4eaaa37b6";
            fsType = "ext4";
          };
      
        swapDevices = [ ];
      
      }
      
      I disobey the warning at the top to add `"aes_x86_64"` and `"cryptd"` to the available kernel modules, to speed up encryption. The `configuration.nix` follows:
      Click to view the configuration file
      # Edit this configuration file to define what should be installed on
      # your system.  Help is available in the configuration.nix(5) man page
      # and in the NixOS manual (accessible by running ‘nixos-help’).
      
      { config, lib, pkgs, ... }:
      
      {
        imports =
          [ # Include the results of the hardware scan.
            ./hardware-configuration.nix
          ];
      
        # Hardware stuff
        # add the following to hardware-configuration.nix - speeds up encryption
        #boot.initrd.availableKernelModules ++ [ "aes_x86_64" "cryptd" ];
        boot.initrd.luks.devices.crypt = {
          # Change this if moving to another machine!
          device = "/dev/disk/by-uuid/86090289-1c1f-4935-abce-a1aeee1b6125";
        };
        boot.kernelParams = [ "zfs.zfs_arc_max=536870912" ]; # sets zfs arc cache max target in bytes
        boot.supportedFilesystems = [ "zfs" ];
        nix.maxJobs = lib.mkDefault 6; # number of cpu cores
      
        # Use the GRUB 2 boot loader.
        boot.loader.grub.enable = true;
        boot.loader.grub.version = 2;
        # boot.loader.grub.efiSupport = true;
        # boot.loader.grub.efiInstallAsRemovable = true;
        # boot.loader.efi.efiSysMountPoint = "/boot/efi";
        # Define on which hard drive you want to install Grub.
        boot.loader.grub.device = "/dev/vda"; # or "nodev" for efi only
        boot.loader.grub.enableCryptodisk = true;
        boot.loader.grub.zfsSupport = true;
      
        networking.hostName = "m"; # Define your hostname.
        # networking.wireless.enable = true;  # Enables wireless support via wpa_supplicant.
      
        # The global useDHCP flag is deprecated, therefore explicitly set to false here.
        # Per-interface useDHCP will be mandatory in the future, so this generated config
        # replicates the default behaviour.
        networking.useDHCP = false;
        networking.interfaces.ens3.useDHCP = true;
        networking.hostId = "aoeu"; # set this to the first eight characters of /etc/machine-id for zfs
        networking.nat = {
          enable = true;
          externalInterface = "ens3"; # this may not be the interface name
          internalInterfaces = [ "wg0" ];
        };
        networking.firewall = {
          enable = true;
          allowedTCPPorts = [ 53 25565 ]; # open 53 for DNS and 25565 for Minecraft
          allowedUDPPorts = [ 53 51820 ]; # open 53 for DNS and 51820 for Wireguard - change the Wireguard port
        };
        networking.wg-quick.interfaces = {
          wg0 = {
            address = [ "10.0.0.1/24" "fdc9:281f:04d7:9ee9::1/64" ];
            listenPort = 51820;
            privateKeyFile = "/root/wireguard-keys/privatekey"; # fill this file with the server's private key and make it so only root has read/write access
      
            postUp = ''
              ${pkgs.iptables}/bin/iptables -A FORWARD -i wg0 -j ACCEPT
              ${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING -s 10.0.0.1/24 -o ens3 -j MASQUERADE
              ${pkgs.iptables}/bin/ip6tables -A FORWARD -i wg0 -j ACCEPT
              ${pkgs.iptables}/bin/ip6tables -t nat -A POSTROUTING -s fdc9:281f:04d7:9ee9::1/64 -o ens3 -j MASQUERADE
            '';
      
            preDown = ''
              ${pkgs.iptables}/bin/iptables -D FORWARD -i wg0 -j ACCEPT
              ${pkgs.iptables}/bin/iptables -t nat -D POSTROUTING -s 10.0.0.1/24 -o ens3 -j MASQUERADE
              ${pkgs.iptables}/bin/ip6tables -D FORWARD -i wg0 -j ACCEPT
              ${pkgs.iptables}/bin/ip6tables -t nat -D POSTROUTING -s fdc9:281f:04d7:9ee9::1/64 -o ens3 -j MASQUERADE
            '';
      
            peers = [
              { # peer0
                publicKey = "{client public key}"; # replace this with the client's public key
                presharedKeyFile = "/root/wireguard-keys/preshared_from_peer0_key"; # fill this file with the preshared key and make it so only root has read/write access
                allowedIPs = [ "10.0.0.2/32" "fdc9:281f:04d7:9ee9::2/128" ];
              }
            ];
          };
        };
      
        # Configure network proxy if necessary
        # networking.proxy.default = "http://user:password@proxy:port/";
        # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
      
        nixpkgs.config = {
          allowUnfree = true; # don't set this if you want to ensure only free software
        };
      
        # Select internationalisation properties.
        i18n.defaultLocale = "en_US.UTF-8";
        console = {
          font = "Lat2-Terminus16";
          keyMap = "us";
        };
      
        # Set your time zone.
        time.timeZone = "America/New_York"; # set this to the same timezone your server is located in
      
        # List packages installed in system profile. To search, run:
        # $ nix search wget
        environment = {
          systemPackages = with pkgs; let
            nvimcust = neovim.override { # lazy minimal neovim config
              viAlias = true;
              vimAlias = true;
              withPython = true;
              configure = {
                packages.myPlugins = with pkgs.vimPlugins; {
                  start = [ deoplete-nvim ];
                  opt = [];
                };
                customRC = ''
                  if filereadable($HOME . "/.config/nvim/init.vim")
                    source ~/.config/nvim/init.vim
                  endif
      
                  set number
      
                  set expandtab
      
                  filetype plugin on
                  syntax on
      
                  let g:deoplete#enable_at_startup = 1
                '';
              };
            };
          in
          [
            jdk8
            nvimcust
            p7zip
            wget
            wireguard
          ];
        };
      
        # Some programs need SUID wrappers, can be configured further or are
        # started in user sessions.
        # programs.mtr.enable = true;
        # programs.gnupg.agent = {
        #   enable = true;
        #   enableSSHSupport = true;
        #   pinentryFlavor = "gnome3";
        # };
      
        # List services that you want to enable:
      
        # Enable the OpenSSH daemon.
        services = {
          dnsmasq = {
            enable = true;
            # this allows DNS requests from wg0 to be forwarded to the DNS server on this machine
            extraConfig = ''
              interface=wg0
            '';
          };
          fail2ban = {
            enable = true;
          };
          openssh = {
            enable = true;
            permitRootLogin = "no";
          };
          zfs = {
            autoScrub = {
              enable = true;
              interval = "monthly";
            };
          };
        };
      
        # Set sudo to request root password for all users
        # this should be changed for a multi-user server
        security.sudo.extraConfig = ''
          Defaults rootpw
        '';
      
        # Define a user account. Don't forget to set a password with ‘passwd’.
        users.users = {
          vpsadmin = { # admin account that has a password
            isNormalUser = true;
            home = "/home/vpsadmin";
            extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
            shell = pkgs.zsh;
          };
          mcserver = { # passwordless user to run a service - in this instance minecraft
            isNormalUser = true;
            home = "/home/mcserver";
            extraGroups = [];
            shell = pkgs.zsh;
          };
        };
      
        systemd = {
          services = {
            mcserverrun = { # this service runs a systemd sandboxed modded minecraft server as user mcserver
              enable = true;
              description = "Start and keep minecraft server running";
              wants = [ "network.target" ];
              after = [ "network.target" ];
              serviceConfig = {
                User = "mcserver";
                NoNewPrivileges = true;
                PrivateTmp = true;
                ProtectSystem = "strict";
                PrivateDevices = true;
                ReadWritePaths = "/home/mcserver/Eternal_current";
                WorkingDirectory = "/home/mcserver/Eternal_current";
                ExecStart = "${pkgs.jdk8}/bin/java -Xms11520M -Xmx11520M -server -XX:+AggressiveOpts -XX:ParallelGCThreads=3 -XX:+UseConcMarkSweepGC -XX:+UnlockExperimentalVMOptions -XX:+UseParNewGC -XX:+ExplicitGCInvokesConcurrent -XX:MaxGCPauseMillis=10 -XX:GCPauseIntervalMillis=50 -XX:+UseFastAccessorMethods -XX:+OptimizeStringConcat -XX:NewSize=84m -XX:+UseAdaptiveGCBoundary -XX:NewRatio=3 -jar forge-1.12.2-14.23.5.2847-universal.jar nogui";
                Restart = "always";
                RestartSec = 12;
              };
              wantedBy = [ "multi-user.target" ];
            };
            mcserverscheduledrestart = { # this service restarts the minecraft server on a schedule
              enable = true;
              description = "restart mcserverrun service";
              serviceConfig = {
                Type = "oneshot";
                ExecStart = "${pkgs.systemd}/bin/systemctl try-restart mcserverrun.service";
              };
            };
          };
          timers = {
            mcserverscheduledrestart = { # this timer triggers the service of the same name
              enable = true;
              description = "restart mcserverrun service daily";
              timerConfig = {
                OnCalendar = "*-*-* 6:00:00";
              };
              wantedBy = [ "timers.target" ];
            };
          };
        };
      
        # This value determines the NixOS release from which the default
        # settings for stateful data, like file locations and database versions
        # on your system were taken. It‘s perfectly fine and recommended to leave
        # this value at the release version of the first install of this system.
        # Before changing this value read the documentation for this option
        # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
        system.stateVersion = "20.09"; # Did you read the comment?
      
      }
      
      You'll notice that this server acts as a Wireguard endpoint and as a Minecraft server. I described the first part on the [NixOS wiki page for Wireguard](https://nixos.wiki/wiki/Wireguard) under the section that mentions dnsmasq. The second part is done using NixOS's systemd support, which can be a bit confusing at first but is easy enough once you know how it works.

      Edit: Also, the provider I use is ExtraVM, who has been excellent.

      6 votes
    3. Tips to use NixOS on a server?

      I see some people using NixOs on their servers. I would like to try it out to self host some services and learn about NixOs. I use hetzner and they have an NixOs iso available so I can just use...

      I see some people using NixOs on their servers. I would like to try it out to self host some services and learn about NixOs.

      I use hetzner and they have an NixOs iso available so I can just use that to install NixOs. But how do people manage remote instances of NixOs? They would just use ansible or something like it, to run nix on the host, or is there a better way?

      Thanks

      11 votes
    4. Cyberpunk 2077 now runs on select Linux setups with Proton

      @Pierre-Loup Griffais: Proton 5.13-4 is now available, with Cyberpunk 2077 support! Currently requires an AMD card and Mesa git. Major thanks to the team over at CD PROJEKT RED for letting us test a build, as there was plenty of vkd3d and radv work needed to get there.

      Twitter: Pierre-Loup Griffais
      14 votes
    5. Librem 5 mass production phone has begun shipping

      Announcement Details on the phone itself (Both are the same, the USA refers to supply chain): Libram 5 - $799 Libram 5 USA - $1999 I think it's quite a tell about how much our electronics are...

      Announcement

      Details on the phone itself (Both are the same, the USA refers to supply chain):
      Libram 5 - $799
      Libram 5 USA - $1999

      I think it's quite a tell about how much our electronics are subsidized by sourcing from inordinately cheap labor compared to the (mostly) German/USA labor for the USA phone.

      PureOS itself looks like it could be a decent entrant to breaking the mobile duopoly. The only sticking point for me would be various applications that don't offer browser options (read: 2 factor authentication apps).

      12 votes
    6. How can I reproduce my somewhat complicated Linux keymappings on Windows 10?

      I am stuck on Windows 10 for the time being, and I wish to make it function similarly to the arrangement I have on Linux, using xcape and xmodmap. This is what I need: Caps sends Escape on tap and...

      I am stuck on Windows 10 for the time being, and I wish to make it function similarly to the arrangement I have on Linux, using xcape and xmodmap. This is what I need:

      1. Caps sends Escape on tap and Control on hold
      2. Tab sends Tab on tap and Alt/Meta on hold
      3. Escape sends Caps (I rarely use this one).

      I find this setup extremely comfortable. Is there a way to achieve this on Windows (that a layman like myself could do?).

      7 votes
    7. Is there a service where I can rent a Windows or macOS virtual machine?

      Hi, hope this is the right place for this question. I'd like to learn Autodesk Fusion 360, but all of my devices are running either Ubuntu or ChromeOS. I've tried to get F360 running on my ubuntu...

      Hi, hope this is the right place for this question. I'd like to learn Autodesk Fusion 360, but all of my devices are running either Ubuntu or ChromeOS. I've tried to get F360 running on my ubuntu desktop with both Wine and Lutris but I haven't had success. There is also a web application for F360 but it is feature limited.

      It seems like the only way to get this program running is to use a virtual machine, but I don't have much experience in this area. Do I need to buy a windows license and set up my own VM or is there a service where I can rent time on a preconfigured VM somewhere?

      Thanks for reading, hope to hear your suggestions.

      8 votes
    8. Are there any good tools for "one-off" file encryption?

      Sorry if this is a silly question, but I keep running into situations where a small CLI or GUI tool that could be handed a single file and hand me back an encrypted version would be useful. I've...

      Sorry if this is a silly question, but I keep running into situations where a small CLI or GUI tool that could be handed a single file and hand me back an encrypted version would be useful. I've done some googling, but all I typically turn up is blogspam about random Windows-only tools that seem to be of dubious quality.

      Anyone know of a good tool for this type of thing?

      9 votes
    9. Do you use Linux for music production? What software and tools do you use?

      I'm an amateur musician and amateur audio editor and creator. (I noticed the ~creative category isn't that active, and) I was wondering if there were any Tilders who make music with Linux....

      I'm an amateur musician and amateur audio editor and creator. (I noticed the ~creative category isn't that active, and) I was wondering if there were any Tilders who make music with Linux. Activities such as:

      • recording instruments or vocals
      • producing music digitally
      • composing and using score writing software
      • editing and mixing audio

      I'm interested to learn more and improve my craft(s), so perhaps people could share their go-to apps or hardware, and tips for beginners, like how best to configure Linux for audio work (minimize latency, etc.). I'd be interested in any finished (or unfinished!) works produced with Linux that anyone would want to share.

      I mainly use ardour for audio production, including MIDI. I use Musescore for making scores / sheet music. I occasionally use command line tools like exiftool and ffmpeg. I've dabbled with LMMS, and have outgrown Audacity.

      17 votes
    10. Help Packaging Elmer FEM for Nix

      I'm trying to package Elmer for use with NixOS, and could use some help from any experienced Nix users. My current attempt is located here. There is some junk left around in that file from my...

      I'm trying to package Elmer for use with NixOS, and could use some help from any experienced Nix users. My current attempt is located here. There is some junk left around in that file from my experimenting, but it's at least a start. There are also a few lines of error included in the comment here.

      Any help is appreciated!

      6 votes
    11. Let's talk gaming on Linux

      Assorted questions. As always, don't feel like you have to treat them like a quiz and answer them one-by-one (though you certainly can), but more like jumping off points for discussing whatever...

      Assorted questions. As always, don't feel like you have to treat them like a quiz and answer them one-by-one (though you certainly can), but more like jumping off points for discussing whatever you feel is relevant:

      • Who here games on Linux?
      • How long have you been doing it?
      • What is your setup like? Full-time Linux? Dual booting? GPU Passthrough?
      • Which distro do you use, and why? Did gaming-related factors have an influence on that choice at all?
      • What are some of the positives about gaming on Linux?
      • What are some of the drawbacks/frustrations?
      • What are some of your favorite native Linux games?
      • What are your thoughts on the main gaming platforms' support or lack thereof for Linux?
      • Do you personally feel a friction between open source philosophy and playing closed-source games?
      • Do you think that Valve's Proton initiative is a help or hindrance for Linux gaming?

      Share anything else you feel is relevant as well. I'm mostly interested in hearing what other people's experiences are.

      Also, I debated whether to put this in ~games or ~tech and ultimately decided on the former, but if it's better placed in ~tech I'm fine with that.

      26 votes
    12. [SOLVED] Tech support request: Getting a scanner and controller working in Linux

      Most recent update is here. The Tildes community has been amazing and patient with me as a new and uninformed Linux user, and I'm greatly appreciative of that. I return to you today with yet...

      Most recent update is here.


      The Tildes community has been amazing and patient with me as a new and uninformed Linux user, and I'm greatly appreciative of that. I return to you today with yet another request.


      Hardware

      System76 Oryx Pro
      Distro: Pop!_OS 19.10


      Issue #1 (mission critical)

      Brother MFC-L2750DW

      I have a Brother printer/scanner for which I have installed the drivers using the .deb file provided on the Brother site. It's connected via USB. Printing works fine; scanning does not. My husband and I both need the ability to scan for our jobs, so this issue is pretty important to us.

      I am using the program Document Scanner (I believe it's one of the GNOME default programs?). When I open the program it says "Searching for Scanners" and then recognizes my scanner, giving the model number and says it's "Ready to Scan". Whenever I attempt to scan, however, whether from the ADF or the flatbed, it says "Unable to connect to scanner". I am not sure how to proceed, and any guidance on this would be greatly appreciated!


      Issue #2 (optional)

      Hyperkin Duke Wired Xbox Controller

      This is an optional issue and not at all one that needs to be solved by any means. A while back my husband got me this because it's my absolute favorite controller of all time (I know, scoff all you want!). It worked fine in Windows, but now that I've shifted over to Linux it has been sitting and gathering dust.

      When I plug it in the controller rumbles briefly (which it also did on Windows), but other than that does nothing. No input is accepted. If it's easy to get this up and running in Linux, I'd love to be able to use it, but if it's not that's totally fine. I have another controller I can use, and again, none of this is essential to my work. I just figured since I was asking for help I'd throw this in here too.


      If you need any additional information or need me to try any specific things, let me know!

      10 votes
    13. Linux is a subpar choice for professional video editing

      I don't wanna get into a heated discussion, so let me make something very clear: for a regular user, video editing on Linux is probably fine. That is just not my use case. I'm used to a degree of...

      I don't wanna get into a heated discussion, so let me make something very clear: for a regular user, video editing on Linux is probably fine.

      That is just not my use case.

      I'm used to a degree of freedom, choice, and stability that, right now, Linux does not provide in that area.

      I'm a film major who has worked as a professional video editor for many years and editing video on anything that is not nearly as good, reliable and precise as Adobe Premiere feels like torture.

      But even being very flexible regarding features and requirements, after trying all the regular suggestions, as professional tools, and with all the respect I can muster, they are just unusable for me.

      I need a reliable program in which I can throw any format without worrying about constant crashes, but Linux options are all either extremely limited, unstable or both! Before anyone asks: I tried multiple programs, in different versions and installation methods, on entirely different hardware and unaffiliated distributions.

      Kdenlive resembles professional-grade software but constantly crashes at the simplest operations. DaVinci Resolve seems like a good bet but is a nightmare just to install and equally crashy when/if I'm able to do so (last time I had to manually edit the install script following the instructions of some random forum post. This did not cause a good impression. And audio didn't work), and I'm not willing to use something so finicky if Linux doesn't get primary support.

      Besides, Blackmagic Design only provides a few pieces of the puzzle. Professional video editing requires a whole stack of integrated software. Both Windows and Mac OS have this, Linux has not.

      There's also the issue of GPU acceleration.

      I'm not saying FOSS developers owe me anything, nor that they have done a bad job with programs like OpenShot, Pitivi, Blender, whatever. I'm just saying that, regrettably, I'll probably have to install put Windows on dual-boot on my machine in the next few days.

      16 votes
    14. Terry A Davis: Questions to God

      Hey everyone, just watching a very interesting history of Terry A Davis (creator of TempleOS) and around the 30 minute mark there is a list of questions Terry asked to God and the answers he...

      Hey everyone, just watching a very interesting history of Terry A Davis (creator of TempleOS) and around the 30 minute mark there is a list of questions Terry asked to God and the answers he believed he received. I took a look online but was unable to find anything. I don't suppose anyone out there has a link? I'd be very interested to read it. Thanks in advance.

      EDIT: I'm also interested in any links to the art he created (hymns, visual art etc).

      10 votes
    15. [SOLVED] Tech support request: Recovering from hard crashes in Linux

      EDIT: Latest update This is something so rudimentary that I'm a little embarrassed to ask, but I've also tried looking around online to no avail. One of the hard parts about being a Linux newbie...

      EDIT: Latest update


      This is something so rudimentary that I'm a little embarrassed to ask, but I've also tried looking around online to no avail. One of the hard parts about being a Linux newbie is that the amount of support material out there seems to differ based on distro, DE, and also time, so posts from even a year or two ago can be outdated or inapplicable.

      Here's my situation: I'm a newbie Linux user running Pop!_OS 19.10 with the GNOME desktop environment. Occasionally, games I'm playing will hard crash and lock up my system completely, leaving a still image of the game frozen on the screen indefinitely. The system stays there, completely unresponsive to seemingly any inputs. It doesn't happen often, but when it does it's almost always when I'm running a Windows game through Steam's Proton layer. I suspect it also might have something to do with graphics drivers, as I'll at times notice an uptick in frequency after certain updates, though that might just be me finding a suspicious pattern where none exists.

      Anyway, what I don't know how to do is gracefully exit or recover from these crashes. No keyboard shortcut seems to work, and I end up having to hold the power button on my computer until it abruptly shuts off. This seems to be the "worse case scenario" for handling it, so if there is a better way I should go about this, I'd love to know about it.


      EDIT: I really want to thank everyone for their help so far. My initial question has been answered, and for posterity's sake I'd like to post the solution here, to anyone who is searching around for this same issue and ends up in this thread:

      • Use CTRL+ALT+F3/F4/F5/F6 keys to access a terminal, where you can try to kill any offending processes and reboot if needed.
      • If that fails, use ALT+SYSRQ+R-E-I-S-U-B.

      With that out of the way, I've added more information about the crashes specifically to the thread, primarily here, and some people are helping me out with diagnosing the issue. This thread is now less about the proper way to deal with the crash than it is about trying to identify the cause of the crash and prevent it in the first place.

      12 votes
    16. Laptop review of Acer A315-42

      So I bought this laptop mainly for web browsing, document editing, note taking and programming with perhaps light gaming although that's not something I've tried yet. So, really just for school...

      So I bought this laptop mainly for web browsing, document editing, note taking and programming with perhaps light gaming although that's not something I've tried yet. So, really just for school work.

      Specifications

      Laptop Model : Acer Aspire 3 A315-42
      Laptop screen : 1080p IPS (with matte finish?)
      CPU : R5 3500U
      RAM : 8GB DDR4 (6GB available because of iGPU)
      Storage : 256GB SSD NVMe
      Wireless : Qualcomm Atheros QCA9377
      Wired : Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 (According to lspci)
      2x USB 2.0, 1x USB 3.0, 1x HDMI port, Audio jack, 1x RJ45 Ethernet port
      Battery : 36.7Wh

      Linux compatibility

      Everything worked out of the box, gotta modify TLP to not kill the touchpad and webcam. The touchpad seems to have a mind of its own when it comes to being detected, It seems to be a kernel bug, unsure what I'll do about it concretely but rebooting a couple of times makes it work. Nothing to install thanks to AMD's open source mesa drivers. Might need a kernel higher than 5.3 because of general Ryzen 3000 issues but I've not tried, it was already higher than that.

      Operating system tested

      Basically never touched Windows, directly installed Fedora 31 Silverblue.

      My Silverblue configuration is :

      ● ostree://fedora:fedora/31/x86_64/silverblue
                         Version: 31.20191213.0 (2019-12-13T00:42:11Z)
                      BaseCommit: a5829371191d0a3e26d3cced9f075525d2ea73679bd255865fcf320bd2dca22a
                    GPGSignature: Valid signature by 7D22D5867F2A4236474BF7B850CB390B3C3359C4
             RemovedBasePackages: gnome-terminal-nautilus gnome-terminal 3.34.2-1.fc31
                 LayeredPackages: camorama cheese eog fedora-workstation-repositories gedit gnome-calendar gnome-font-viewer gnome-tweaks hw-probe libratbag-ratbagd lm_sensors nano neofetch
                                  powertop radeontop sysprof systemd-swap tilix tlp
      

      Kernel : 5.3.15
      Gnome : 3.34.1

      Body and Looks

      The screen back has metal, I believe it feels quite sturdy. The rest is reasonable feeling plastic. The material used just loves to imprint grease / fingers which kinda sucks - the keys being the exception thankfully. There was also stickers on the inside which well, are somewhat standard but I thought they were pretty obnoxious so I removed them.

      Typing experience

      It's nothing amazing but it's good enough. I'm not really knowledgeable on keyboards so that's as much as I can say on it, really.

      Performance

      Everything feels quite snappy but I don't game at all on this machine so I'm not pushing it too much other than while I'm compiling or doing other things. The temperature does go up to 75°C and the fans get a little loud but it's not that bad. It's mostly the bottom getting hot so it's not something you notice too much while typing. It also cold boots quite fast, in about 10-20seconds I want to say but I've not benchmarked that. It's my first computer with an SSD so there's that.

      Battery life

      I get about 5hours with tlp installed doing web browsing, some programming occasionally, listening to music on the speakers and chatting. Personally I was kind of expecting more from this considering it's an APU but it seems to be what other people are getting on similar setups so It'll do.

      Conclusion

      Overall, I'm pretty happy with this laptop considering how I bought it for 575$ on sale. I made this review mostly because I wasn't finding much information about this laptop on Linux and well, I don't know, I guess I felt like it. If you have any questions, ask up!

      11 votes