Hi again !
I just got back in town .
Geek3579 wrote: Sun Feb 02, 2025 5:23 am
Have you tried running "eject" (without the quotes) in a terminal ??
Yes I've tryied that . It doesn't work .Thank you @Geek3579 for trying to help .
@mikewalsh
Thank you too for this TrayControl .pet .
It works . I discovered that if I unplug USB or shut down from the enclosure power button ,it gives this strange behaviour . Immediately autoclose or the front drive button doesn't work anymore .
But TrayControl.pet works . Of course Fatdog transformed it into a TXZ package .
@rcrsn51
Thank you too for remembering me where was the pet I used .@kirk helped us at the time .
I took a look inside the pet though and observed the executable file is different enough from the actual one. That made me think it won't work anymore .
Even the desktop drive icons went gone , and it doesn't work anymore .
Thank you ALL for taking interest in helping me 
A good solution I found searching online .
Somebody , with a similar issue said that he tryied also from the terminal:
Code: Select all
echo 0 > /proc/sys/dev/cdrom/autoclose
and that it didn't work for him .
But , when I tryied it It went very well for me
Actually the line says to put 0 in the autoclose flag in /proc/sys/dev/cdrom/ .
So now I'm thinking where to put it .
/etc/rc.d/rc.local or an executable file in /etc/xdg/Startup .
Or adding the script to /usr/bin and making a .desktop file and choosing an icon for it to be able to put it on the desktop close to sr0 drive icon .