both of my internal and external keyboards work well before, they can only work in sigle user mode now.

    unicorn do share dmesg from single user more

    “Only the paranoid survive.”

    ― Harold Finch
    NetBSD VPS , NetBSD , OS108

      Jay
      there's no internet connection in sigle user mode, how can I get dmesg information?

        unicorn you can save it to text file and copy that using USB to share from other machine.

        “Only the paranoid survive.”

        ― Harold Finch
        NetBSD VPS , NetBSD , OS108

        unicorn

        You could save it to an USB dongle, i guess.

        Comparing to multiuser mode is another question but maybe there are some clues in the single user messages already and if it really becomes necessary there is this clever trick another user told me about: If one takes a video of the screen it's possible to pause or slow down the messages. It's kinda genius.

        Edit: Got ninja'd 😉

        unicorn I record a video

        The Great (Fire)Wall of China is a problem for some of us, mate...

        If you can ssh into the machine from a phone or another PC, then you can do a dmesg & get the output.

          rvp The Great (Fire)Wall of China is a problem for some of us, mate...

          It's loading for me but i think it wants me to login (not 100% sure - i can't read Chinese) and i don't even have a google account, let alone a baidu one.

            unicorn both of my internal and external keyboards work well before, they can only work in sigle user mode now.

            Do you have a keymap= line in /etc/rc.conf? A wrong one there can easily account for your symptom.

              nettester It's loading for me but i think it wants me to login (not 100% sure - i can't read Chinese) and i don't even have a google account, let alone a baidu one.

              I think login is not necessary

              rvp If you can ssh into the machine from a phone or another PC, then you can do a dmesg & get the output.

              I don't familiar with ssh, I don't know how to use it

              rvp Do you have a keymap= line in /etc/rc.conf? A wrong one there can easily account for your symptom

              no, that line is not in my /etc/rc.conf
              Any other video sites I can upload videos?

              • rvp replied to this.

                unicorn I don't familiar with ssh, I don't know how to use it

                Boot into single-user mode, then type these commands:

                mount -u -w /
                echo 'sshd_enable="YES"' >> /etc/rc.conf
                mount -u -r /
                poweroff

                On the next boot, you should have the sshd server running. Install an ssh/sftp/scp client on any other machine (even Android), then you will be able to log-in (using the IP address) and run commands and fetch files from your "server".

                (BTW, it's pretty easy to get networking going in single-user mode too if you want that...)

                  rvp (BTW, it's pretty easy to get networking going in single-user mode too if you want that...)

                  I can't ssh to my computer without the internet, how do I get it to work?

                  • rvp replied to this.

                    unicorn I can't ssh to my computer without the internet, how do I get it to work?

                    You don't need an internet connection to connect to machines on the local network. Just:

                    ssh user@IP.ADD.RE.SS                                   # or, putty ...

                    will do. But, if you want networking in single-user mode:

                    root# hostname foo.localdomain				# set own hostname
                    root# ifconfig lo0 127.0.0.1				# bring up loopback IF
                    
                    root# mount -t tmpfs none /tmp				# mount a RW /tmp
                    root# ifconfig						# get IF list
                    root# dhclient -l /tmp/dh.lease -p /tmp/dh.pid re0	# req. ipaddr on IF
                    DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 4
                    DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 9
                    DHCPDISCOVER on re0 to 255.255.255.255 port 67 interval 21
                    DHCPOFFER from 192.168.1.1
                    DHCPREQUEST on re0 to 255.255.255.255 port 67
                    DHCPACK from 192.168.1.1
                    bound to 192.168.1.106 -- renewal in 3600 seconds.	# <-- your ipaddr
                    root# ping -4nc5 google.com				# check IPv4 conn.
                    root# 

                    (Getting WiFI to work is a few more steps...)

                      rvp You don't need an internet connection to connect to machines on the local network. Just:
                      ssh user@IP.ADD.RE.SS # or, putty ...

                      I don't know my ip address, ifconfig doesn't show ip adress without internet

                      unicorn great, I had got my dmesg

                      Looks OK. Can you post the output of these commands:
                      single-user mode is OK:

                      sha1 /etc/defaults/rc.conf /etc/rc.d/syscons /etc/devd.conf
                      cat /etc/rc.conf

                      In multi-user mode (ssh in as a regular user, then become root):

                      ps -Au
                      ls -l /dev/

                        unicorn That ps -Au should've been done in multi-use mode, but, never mind. I can't see anything wrong so far. Let's see if this is a general issue or just an Xorg/slim issue:

                        1. In slim, do the LEDs light up when you press the CapsLock/NumLock keys?
                        2. Can you disable/comment-out slim in /etc/rc.conf then reboot and check if input works?

                          rvp
                          It works after disable slim, I got 10750 patches and upgraded to 14.0 BETA1 successfully.
                          but neither startx nor pkg update works.

                          • rvp replied to this.

                            unicorn but neither startx

                            You will have to update the DRMKMS modules to match the current kernel (see below).
                            Post /var/log/Xorg.0.log, also the output of: id.

                            unicorn nor pkg update works.

                            I think for -BETA, -STABLE and -CURRENT, you have to build from source.

                            OK, I see that binary packages are available for -14 and also -15.
                            Does this work: use latest instead of quarterly (which are only for -RELEASE branches)

                            mkdir -p /usr/local/etc/pkg/repos/
                            cp -pv /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/.
                            sed -i '' -e '/url:/s/quarterly/latest/' /usr/local/etc/pkg/repos/FreeBSD.conf