You seem to have your good sides and connect to some students. You can't win them all. Everyone has a different learning style, need for audio, visuals, excersisexcercises. Try to add more variety. If it's all chalk on the whiteboard students will vote with their feet and go with the books. TheyThe most intelligent rightfully consider that a waste of their time.
Lot of work for you to move a away from your predecessors 1960ies script maybe. Some people think lecturers should be up to modern teaching standards. not neccessarily your most experienced colleagues. Find and stand by your own way.
Maybe going in the same direction. People manage their time by not intending to copy donw the whiteboard chalk and learn nothing from thatit. If you write fast to push the topics through, students can't focus on understanding. They try to pass your exam by using the books at home. Forcing them to attend via exam specifics questions that come up in last lectures Q6A is really unfair, self-serving and really direspectful of their own time.
Having studied aviation engineering, being a renewables start up founder and working as self-studied IT freelance based on a part-time MBA, i can tell you any student with some brains will be totally disaffected by "chalk physics" w/o meaningful exercises or progress in deepening the understaning. I don't need to write down 2 pages of math to get to the last single useful line. 80% of classes is junk you never need. Get away from any self-serving academia image projected. Some students will bring work life experience to the table and may be really offended being misjudged as slackers.
From that part-time high-speed pro lectures in the MBA, I knew it can be done very differently using Power Point slides etc. to save chalk time. Sometimes it's ignorance or the professor who is the real slacker in the room. just telling from my experience here what digital natives may expect from you in IT classes.
One easy reccomendation is hand out sample exams early for the book readers that hold up to self-teaching and passing with a good grade. Everyone will know what it's about and has no excuses for wasting a semester. Keep in mind wasting big ressources and failing when trying hard is deeply demotivating. Don't assume anyone to be a slacker. They all have their own tough choices on a hairstring budget or very judgemental parents at home. Such frustration may result in a very personal or harsh critisism. Try to find the gold in it too. Some still have to learn organizing a study or not to take up too many classes in a semester. Some may have structural limits to take the full plate scheduled offcially or retrain basics from long ago or bad teachers in their high schools. Or have a night job in a bar.
Does your administration offer an optional excercise tutor for your course? That may address some issues reg exams questions.
What I ask for is a lot of work and can only be improved gradually by carefully managing your time and get assistance where you can grab it from budgets.