Forum Discussion
Altera_Forum
Honored Contributor
7 years ago --- Quote Start --- How to disable the USB gadget before I cannot use mouse and keyboard control the Desktop? I have tried to disable it in command line but it told me that "QXcbConnection: Could not connect to display"...... --- Quote End --- Try this command when logged in using the serial port as root, then reboot or power-cycle: root@de10-nano:/bin# cd /bin root@de10-nano:/bin# ./systemctl disable de10-nano-gadget-init.service Removed /etc/systemd/system/basic.target.wants/de10-nano-gadget-init.service. root@de10-nano:/bin#
alid
New Contributor
5 years agoTo add, using serial port (connecting the mini-USB port called 'UART to USB' to computer and running a program like Tera Term ) to log in and running the command above solved my problem.
Serial port parameters (couldn't find them in manual): 115200, 8 bit, no parity, 1 stop bit, no flow control.
Also, despite what manual says, there is no password for root.
Hope this helps new users running into this issue.