RTL8188CUS Wireless dongle perpetually connecting but never connected

310

It looks like you have two Realtek adapters connected to USB.

Regarding 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter you can install a better driver. Run in terminal

   sudo apt-get install git build-essential
   git clone https://github.com/lwfinger/rtl8192cu.git
   cd rtl8192cu
   make
   sudo make install

It should solve the issue.

You will have to re-install this driver after each kernel upgrade.

I pushed DKMS module of this driver to my ppa. If you install it from there, you will not need to re-install it.

It can be installed by

sudo add-apt-repository ppa:hanipospilot/rtlwifi
sudo apt-get update
sudo apt-get install rtl8192cu-dkms

Important!!! If you previously installed this driver from https://github.com/lwfinger/rtl8192cu.git, you will need to run

sudo rm /etc/modprobe.d/50-rtl8192cu.conf

to get it work. Previous install blacklists rtl8192cu.

And if you installed rtlwifi-new-dkms, you should remove it too.

I will later remove rtl8192cu from rtlwifi-dkms, because it does not work well.

Share:
310

Related videos on Youtube

Sandra
Author by

Sandra

Updated on September 18, 2022

Comments

  • Sandra
    Sandra over 1 year

    I use Fullcalendar 5.1 and I would like try to delete an event on fullcalendar by clicking event. I load data from database tables and I get an array for events and resources (like examples in comment code). I need "event id" in order to delete in database tables and I don't know how to do ("eventDelete" is undefined). Thank for your help if you have already do the same.

    Here is my full code :

    document.addEventListener('DOMContentLoaded', function() {
          var calendarEl = document.getElementById('calendar');
          var calendar = new FullCalendar.Calendar(calendarEl,
          {
            aspectRatio: 1.8,
            scrollTime: '00:00',
            locale : 'fr',
            headerToolbar: {
              left: 'today prev next',
              center: 'title',
              right: 'resourceTimelineDay,timeGridWeek,dayGridMonth'
            },
            firstDay : 1,
            buttonText: {
              today: 'Aujourd\'hui',
              month: 'Mois',
              week: 'Semaine',
              list: 'Liste'
            },
            initialView: 'resourceTimelineDay',
            resourceAreaWidth: '30%',
            resourceAreaColumns:[ {
                headerContent: 'Ressources',
                field: 'title'
              }
            ],
            resources:
            /*  resources: [
                { id: 'a', title: 'Auditorium A', occupancy: 40 },
                { id: 'b', title: 'Auditorium B', occupancy: 40, eventColor: 'green' },
                { id: 'c', title: 'Auditorium C', occupancy: 40, eventColor: 'orange' },
                { id: 'd', title: 'Auditorium D', occupancy: 40, children: [
                  { id: 'd1', title: 'Room D1', occupancy: 10 },
                  { id: 'd2', title: 'Room D2', occupancy: 10 }
                ] }
              ] */
            {
               url: '../api/calendar/resources.php',
               method: 'POST'
            },
            events:
            /* events:
            [
              { id: '1', resourceId: 'b', start: '2020-06-07T02:00:00', end: '2020-06-07T07:00:00', title: 'event 1' },
              { id: '2', resourceId: 'c', start: '2020-06-07T05:00:00', end: '2020-06-07T22:00:00', title: 'event 2' },
              { id: '3', resourceId: 'd', start: '2020-06-06', end: '2020-06-08', title: 'event 3' }
            ] */
            {
                url: '../api/calendar/event.php',
                method: 'POST'
             },
             editable: true,
             selectable: true,
             eventClick: function (info) {
                var deleteMsg = confirm("Voulez-vous vraiment supprimer cette activité ?");
                if (deleteMsg) {
                  var eventDelete= $('#event_id').val() ;
                  var event = calendar.getEventById(eventDelete);
                  // Remove event from fullcalendar
                  info.event.remove();
                  // Call ajax to remove event in database table
                    $.ajax({
                        type: "POST",
                        url: '../api/calendar/deleteEvent.php',
                        dataType: 'json',
                        encode: true,
                        data: {'id': eventDelete},
                        success: function (response) {
                            console.log(response);
                            if(parseInt(response) > 0) {
                                $('#calendar').fullCalendar('removeEvents', event.id);
                                displayMessage("Suprression effectuée");
                            }
                          }
                    });
                  }
                }
              });
              calendar.render();
            });

    It remove event from Fullcalendar but not from database because of "event delete" undefined.

    • Pilot6
      Pilot6 almost 9 years
      And rtl8171 is a wired Ethernet driver. it is unrelated.
    • Jaybird
      Jaybird almost 9 years
      It's coming, I just need to transfer it to a computer with Internet (can't access my phone)
    • Jaybird
      Jaybird almost 9 years
      Done - sorry for the delay and formatting, I got it going through my phone, but not the code style blocks.
    • Pilot6
      Pilot6 almost 9 years
      It looks like you have two USB adapters connected. Is it the case?
    • Jaybird
      Jaybird almost 9 years
      No - just one, my other usb devices are phone, mouse, speakers and hard drive. I have on board wifi, but it's very weak.
    • Pilot6
      Pilot6 almost 9 years
      And what is 0bda:8187 Realtek Semiconductor Corp. RTL8187 Wireless Adapter?
    • Pilot6
      Pilot6 almost 9 years
      That must be your built-in adapter connected through usb. It is old 201.11g. You better disable it, not to confuse things.
    • Pilot6
      Pilot6 almost 9 years
      I wrote an answer with two solutions. Online and offline. In your case offline with manual download of the driver is applicable.
    • Sandra
      Sandra almost 4 years
      I get "event ID" with this code : "var event = info.event.id" but it doesn't run yet
  • Jaybird
    Jaybird almost 9 years
    Now when I connect to the WiFi, the whole computer freezes indefinitely, I tried restarting three or four times with the same result.
  • Pilot6
    Pilot6 almost 9 years
    OK. I know how to fix it. First run sudo apt-get remove rtlwifi-new-dkms && sudo add-apt-repository -r ppa:hanipouspilot/rtlwifi
  • Pilot6
    Pilot6 almost 9 years
    And then install another driver from the answer.