Keyboard Layout copy paste etc not working with Win Defaults & Emacs defaults

5 vues (au cours des 30 derniers jours)
Max Schaufelberger
Max Schaufelberger le 8 Mar 2022
Réponse apportée : Simar le 20 Nov 2023
Hello,
today I experienenced a problem with the copy and paste hotkeys, as well as the other common shortcuts as save or undo/redo
I am set on the Windows defaults and get the Emacs defaults. I tested that because I have paste on ALT-W for some reason.
So now if I switch to the emacs layout I couldnt find any hotkey anymore.
As a side note:
I never experienced this before and today was the first time.
I checked in Sublime and it works as expected.
Yesterday night my laptop ran out of battery which could have caused some problems. Any idea what kind?
Running on ubuntu 20.04 and Matlab 2021b
Thanks in advance,
MS
P.S I tested on Matlab Online and it works as expected.
P.S2 Further test shows that after reboot it works for a couple moments in the command window. But after that only paste works.
In the Editor either ctrl-c nor ctrl-v work. Using ctrl-v reveals an error "Printing Failure", " There are no properly configured printers on the system."
The paste Hotkey went to ctrl-w
P.S3 I added an error log file I found. But I do not understand it however.

Réponses (1)

Simar
Simar le 20 Nov 2023
Hi Max,
I understand that you are experiencing an unusual issue with MATLAB on Ubuntu, where the keyboard shortcuts are not functioning as expected. Here are some workarounds to potentially resolve the problem:
  1. Reset MATLAB Preferences as sometimes, preferences can get corrupted, especially after an unexpected shutdown like a battery running out. Resetting to default settings might resolve the issue. To do this, either rename or delete the preferences directory. The preferences directory is typically located at ~/.matlab/R2021b (the version number in the path may vary). After renaming or deleting this folder, restart MATLAB, and it will recreate the preferences with default settings.
  2. Check MATLAB Key Bindings. Go to MATLAB's preferences and check the keyboard shortcuts. Navigate to Home > Preferences > MATLAB > Keyboard > Shortcuts. Make sure that the Windows Default Set is selected and not the Emacs Default Set if you are used to Windows shortcuts.
  3. Ensure that the keyboard layout in Ubuntu has not changed. One can check this by going to the system settings in Ubuntu and reviewing the keyboard layout settings. Ensure that your Ubuntu system is up to date with all the latest patches and updates. Sometimes, system updates can fix underlying issues that affect applications.
  4. The error message "There are no properly configured printers on the system" seems unrelated to the keyboard shortcut issue but indicates a problem with the printer configuration on your system. This might be a separate issue that needs to be resolved through Ubuntu's printer settings.
  5. On Inspecting Error Logs, an assertion has been detected in the system. The error log contains information about a fatal Java exception. The log files are available at the following locations:
  • Java Crash Report: /home/max/hs_error_pid7247.log
  • Java Log: /home/max/java.log.7247
The fault count is 1, and the assertion points to a fatal Java exception. On looking at Java Crash Report and Java Log, the provided error log indicates a native method error related to “Nativewindow X11 IOError” on the Linux system. The error message "Resource temporarily unavailable" suggests that there might be an issue with the X11 display server. Given the error message, the X11 server is encountering a problem with resource availability, leading to the fatal errors. This may be related to the graphical user interface (GUI) or windowing system. Here are a few steps to troubleshoot this issue:
  • Check X11 Display Server Status and verify the status of the X11 display server to ensure that it is running without any issues.
  • Investigate any potential resource constraints on the system that might be affecting the X11 server's operation.
  • Ensure that the graphics drivers for the AMD Ryzen 5 5600H with Radeon Graphics are up to date. Sometimes, outdated, or incompatible graphics drivers can cause issues with the X11 server.
  • Check system logs for any additional error messages or warnings that might provide further insights into the issue.
As you mentioned the problem does not occur in MATLAB Online, it suggests that the issue is specific to local MATLAB installation or system configuration. Consider reinstalling MATLAB to see if that resolves the issue. Remember to back up any important scripts or data before doing so.
Hope it helps!
Best Regards,
Simar

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by