Arduino 2.3 on Linux, ioctl("TIOCMGET"): Inappropriate ioctl for device

I have used the great Mega 2560 for 5 years, a friend just installed Linux Mint Cinnamon on my laptop, despite my ignorance of Linux I downloaded Arduino 2.3.2 on Linux, found arduino-ide_2.3.2_Linux_64bit.AppImage, found /dev/ttyACM0, did permission to allow executing file as program, selected board Mega2560, but instead of COM3 or COM4, I see Port: "/dev/ttyACM0", I tried compile & upload of sample program & get ioctl("TIOCMGET"): Inappropriate ioctl for device, I would appreciate your advice.

I do not know if the below will help to analyse the error ioctl("TIOCMGET"): Inappropriate ioctl for device.

  1. Disconnect your board
  2. In a shell, run lsusb; you should not see /dev/ttyACM0.
  3. Connect your board.
  4. Run lsusb again. You will probably see the /dev/ttyACM0.

Next

  1. Disconnect the board.
  2. In a shell, run dmesg -w; dmesg will not close.
  3. Connect the board.
  4. Observe the additional information that shows. You can post that additional output here.
  5. You can close dmesg with <ctrl>C.
  6. Any errors in there? Any references to BRLTTY?

Further anything in those search results: arduino ioctl("TIOCMGET"): Inappropriate ioctl for device - Google Search

Note that there is (more than likely) no difference between IDE 1.x and 2.x when it comes to the error.

1 Like

lsusb does not show /dev/ttyACM0,
Thank you for you comments.
I think I may have a separate overheating issue with this 5 year old lenovo X230 thinkpad because it frequently shuts down completely.
I built a 4 inch tall wind tunnel under the laptop (blowing up to the bottom of the laptop)
removed the battery, removed the cover plate near SSD, disconnected external monitor, disconnected external keyboard, disconnected external mouse, disconnected Arduino, and it ran long enough (80 minutes) to do 8.8GB of data to flash drive, but within 4 minutes of connecting Arduino, the laptop died again. I don't do games or video, so I think I will shop for a netbook and get my friend to install Linux Mint Cinnamon on it. Any recommendations on a bare bones netbook? Thanks again for your comments about /dev/ttyACM0 and TIOCMGET.

Thanks to my Linux friend, I now enjoy the ability to dual boot either WIN10 or Linux Mint 21.3 Cinnamon on my 5 year old Lenovo X230 thinkpad.
I can now boot with Linux (no OFFICE 2019) & do my spreadsheets, word documents, gmail, & web-browsing.
Some old OFFICE 2019 spreadsheets & WORD documents required some formatting adjustments.
I booted with WIN10, removed Arduino 2.3.2 IDE, and downloaded and installed an older version: Arduino 1.8 IDE.
I can now boot with WIN10 and have no problem getting ports (COM3 or COM4) for my Arduino programs.
No more PORT error messages about "/dev/ttyACM0 and TIOCMGET".
My laptop has not powered down in days!
Thanks!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.